geany-zencoding icon indicating copy to clipboard operation
geany-zencoding copied to clipboard

Fixed replacement insert indentation

Open deeptoaster opened this issue 10 years ago • 0 comments

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.

deeptoaster avatar Jul 28 '15 10:07 deeptoaster