geany-zencoding
geany-zencoding copied to clipboard
Fixed replacement insert indentation
At present the Geany Zen Coding plugin ignores the current line indentation when making an expansion or other replacement, which leads to a poorly formatted result that must be manually corrected. For example, expanding the second line in
<body>
#header>ul.pull-left+ul.pull-right+a#logo>img
<div id="main"></div>
would result in
<body>
<div id="header">
<ul class="pull-left"></ul>
<ul class="pull-right"></ul>
<a href="" id="logo"><img src="" alt="" /></a>
</div>
<div id="main"></div>
which is not the correct behavior. This commit fixes this issue.