morbac / xmltools

XML Tools plugin for Notepad++
GNU General Public License v3.0
263 stars 59 forks source link

Pretty print forgot some "Close tag" #181

Open fspezi opened 2 years ago

fspezi commented 2 years ago

The Pretty print do not works well.
After "pretty print" command some "

" go out.

Source code:

<!-- ngRepeat: item in mediaItems track by $index --><li ng-repeat="item in mediaItems track by $index" class="ng-scope ng-animate ng-enter ng-enter-active mediaItem mediaItem-current" xl-cangular="::templateHtml.mediaItem" data-ng-animate="2" style=""><div class="mediaContent d-none d-lg-block ng-binding ng-scope" alt="Immagine 1" ng-bind-html="xlTouchslide.trustAsHtml(item.contentTabletHtml)" xl:touchslide-required=""><img class="image" src="/media-pub/images/6901/num01.jpg.314356'slideshow-landscape'it-IT'bLG.png"></div>
            <div class="mediaContent d-block d-lg-none ng-binding ng-scope" alt="Immagine 1" ng-bind-html="xlTouchslide.trustAsHtml(item.contentMobileHtml)" xl:touchslide-required=""><img class="image" src="/media-pub/images/6901/num01.jpg.314356'slideshow-landscape'it-IT'bLG.png"></div>
            <div class="caption ng-scope">
                <p class="ng-binding">Immagine 1</p>
            </div></li><!-- end ngRepeat: item in mediaItems track by $index --><li ng-repeat="item in mediaItems track by $index" class="ng-scope ng-animate ng-enter ng-enter-active mediaItem" xl-cangular="::templateHtml.mediaItem" data-ng-animate="2" style=""><div class="mediaContent d-none d-lg-block ng-binding ng-scope" alt="Immagine 2" ng-bind-html="xlTouchslide.trustAsHtml(item.contentTabletHtml)" xl:touchslide-required=""><img class="image" src="/media-pub/images/6901/num02.jpg.314357'slideshow-landscape'it-IT'bLG.png"></div>
            <div class="mediaContent d-block d-lg-none ng-binding ng-scope" alt="Immagine 2" ng-bind-html="xlTouchslide.trustAsHtml(item.contentMobileHtml)" xl:touchslide-required=""><img class="image" src="/media-pub/images/6901/num02.jpg.314357'slideshow-landscape'it-IT'bLG.png"></div>
            <div class="caption ng-scope">
                <p class="ng-binding">Immagine 2</p>
            </div></li><!-- end ngRepeat: item in mediaItems track by $index --><li ng-repeat="item in mediaItems track by $index" class="ng-scope ng-animate ng-enter ng-enter-active mediaItem" xl-cangular="::templateHtml.mediaItem" data-ng-animate="2" style=""><div class="mediaContent d-none d-lg-block ng-binding ng-scope" alt="Immagine 3" ng-bind-html="xlTouchslide.trustAsHtml(item.contentTabletHtml)" xl:touchslide-required=""><img class="image" src="/media-pub/images/6901/num03.jpg.314358'slideshow-landscape'it-IT'bLG.png"></div>
            <div class="mediaContent d-block d-lg-none ng-binding ng-scope" alt="Immagine 3" ng-bind-html="xlTouchslide.trustAsHtml(item.contentMobileHtml)" xl:touchslide-required=""><img class="image" src="/media-pub/images/6901/num03.jpg.314358'slideshow-landscape'it-IT'bLG.png"></div>
            <div class="caption ng-scope">
                <p class="ng-binding">Immagine 3</p>
            </div></li><!-- end ngRepeat: item in mediaItems track by $index --><li ng-repeat="item in mediaItems track by $index" class="ng-scope ng-animate ng-enter ng-enter-active mediaItem" xl-cangular="::templateHtml.mediaItem" data-ng-animate="2" style=""><div class="mediaContent d-none d-lg-block ng-binding ng-scope" alt="Immagine 4" ng-bind-html="xlTouchslide.trustAsHtml(item.contentTabletHtml)" xl:touchslide-required=""><img class="image" src="/media-pub/images/6901/num04.jpg.314359'slideshow-landscape'it-IT'bLG.png"></div>
            <div class="mediaContent d-block d-lg-none ng-binding ng-scope" alt="Immagine 4" ng-bind-html="xlTouchslide.trustAsHtml(item.contentMobileHtml)" xl:touchslide-required=""><img class="image" src="/media-pub/images/6901/num04.jpg.314359'slideshow-landscape'it-IT'bLG.png"></div>
            <div class="caption ng-scope">
                <p class="ng-binding">Immagine 4</p>
            </div></li><!-- end ngRepeat: item in mediaItems track by $index --><li ng-repeat="item in mediaItems track by $index" class="ng-scope ng-animate ng-enter ng-enter-active mediaItem" xl-cangular="::templateHtml.mediaItem" data-ng-animate="2" style=""><div class="mediaContent d-none d-lg-block ng-binding ng-scope" alt="Immagine 5" ng-bind-html="xlTouchslide.trustAsHtml(item.contentTabletHtml)" xl:touchslide-required=""><img class="image" src="/media-pub/images/6901/num05.jpg.314360'slideshow-landscape'it-IT'bLG.png"></div>
            <div class="mediaContent d-block d-lg-none ng-binding ng-scope" alt="Immagine 5" ng-bind-html="xlTouchslide.trustAsHtml(item.contentMobileHtml)" xl:touchslide-required=""><img class="image" src="/media-pub/images/6901/num05.jpg.314360'slideshow-landscape'it-IT'bLG.png"></div>
            <div class="caption ng-scope">
                <p class="ng-binding">Immagine 5</p>
            </div></li><!-- end ngRepeat: item in mediaItems track by $index -->

Result:

<!-- ngRepeat: item in mediaItems track by $index -->
<li ng-repeat="item in mediaItems track by $index" class="ng-scope ng-animate ng-enter ng-enter-active mediaItem mediaItem-current" xl-cangular="::templateHtml.mediaItem" data-ng-animate="2" style="">
    <div class="mediaContent d-none d-lg-block ng-binding ng-scope" alt="Immagine 1" ng-bind-html="xlTouchslide.trustAsHtml(item.contentTabletHtml)" xl:touchslide-required="">
        <img class="image" src="/media-pub/images/6901/num01.jpg.314356'slideshow-landscape'it-IT'bLG.png"/>
        <div class="mediaContent d-block d-lg-none ng-binding ng-scope" alt="Immagine 1" ng-bind-html="xlTouchslide.trustAsHtml(item.contentMobileHtml)" xl:touchslide-required="">
            <img class="image" src="/media-pub/images/6901/num01.jpg.314356'slideshow-landscape'it-IT'bLG.png"/>
            <div class="caption ng-scope">
                <p class="ng-binding">Immagine 1</p>
            </div>
        </li>
        <!-- end ngRepeat: item in mediaItems track by $index -->
        <li ng-repeat="item in mediaItems track by $index" class="ng-scope ng-animate ng-enter ng-enter-active mediaItem" xl-cangular="::templateHtml.mediaItem" data-ng-animate="2" style="">
            <div class="mediaContent d-none d-lg-block ng-binding ng-scope" alt="Immagine 2" ng-bind-html="xlTouchslide.trustAsHtml(item.contentTabletHtml)" xl:touchslide-required="">
                <img class="image" src="/media-pub/images/6901/num02.jpg.314357'slideshow-landscape'it-IT'bLG.png"/>
                <div class="mediaContent d-block d-lg-none ng-binding ng-scope" alt="Immagine 2" ng-bind-html="xlTouchslide.trustAsHtml(item.contentMobileHtml)" xl:touchslide-required="">
                    <img class="image" src="/media-pub/images/6901/num02.jpg.314357'slideshow-landscape'it-IT'bLG.png"/>
                    <div class="caption ng-scope">
                        <p class="ng-binding">Immagine 2</p>
                    </div>
                </li>
                <!-- end ngRepeat: item in mediaItems track by $index -->
                <li ng-repeat="item in mediaItems track by $index" class="ng-scope ng-animate ng-enter ng-enter-active mediaItem" xl-cangular="::templateHtml.mediaItem" data-ng-animate="2" style="">
                    <div class="mediaContent d-none d-lg-block ng-binding ng-scope" alt="Immagine 3" ng-bind-html="xlTouchslide.trustAsHtml(item.contentTabletHtml)" xl:touchslide-required="">
                        <img class="image" src="/media-pub/images/6901/num03.jpg.314358'slideshow-landscape'it-IT'bLG.png"/>
                        <div class="mediaContent d-block d-lg-none ng-binding ng-scope" alt="Immagine 3" ng-bind-html="xlTouchslide.trustAsHtml(item.contentMobileHtml)" xl:touchslide-required="">
                            <img class="image" src="/media-pub/images/6901/num03.jpg.314358'slideshow-landscape'it-IT'bLG.png"/>
                            <div class="caption ng-scope">
                                <p class="ng-binding">Immagine 3</p>
                            </div>
                        </li>
                        <!-- end ngRepeat: item in mediaItems track by $index -->
                        <li ng-repeat="item in mediaItems track by $index" class="ng-scope ng-animate ng-enter ng-enter-active mediaItem" xl-cangular="::templateHtml.mediaItem" data-ng-animate="2" style="">
                            <div class="mediaContent d-none d-lg-block ng-binding ng-scope" alt="Immagine 4" ng-bind-html="xlTouchslide.trustAsHtml(item.contentTabletHtml)" xl:touchslide-required="">
                                <img class="image" src="/media-pub/images/6901/num04.jpg.314359'slideshow-landscape'it-IT'bLG.png"/>
                                <div class="mediaContent d-block d-lg-none ng-binding ng-scope" alt="Immagine 4" ng-bind-html="xlTouchslide.trustAsHtml(item.contentMobileHtml)" xl:touchslide-required="">
                                    <img class="image" src="/media-pub/images/6901/num04.jpg.314359'slideshow-landscape'it-IT'bLG.png"/>
                                    <div class="caption ng-scope">
                                        <p class="ng-binding">Immagine 4</p>
                                    </div>
                                </li>
                                <!-- end ngRepeat: item in mediaItems track by $index -->
                                <li ng-repeat="item in mediaItems track by $index" class="ng-scope ng-animate ng-enter ng-enter-active mediaItem" xl-cangular="::templateHtml.mediaItem" data-ng-animate="2" style="">
                                    <div class="mediaContent d-none d-lg-block ng-binding ng-scope" alt="Immagine 5" ng-bind-html="xlTouchslide.trustAsHtml(item.contentTabletHtml)" xl:touchslide-required="">
                                        <img class="image" src="/media-pub/images/6901/num05.jpg.314360'slideshow-landscape'it-IT'bLG.png"/>
                                        <div class="mediaContent d-block d-lg-none ng-binding ng-scope" alt="Immagine 5" ng-bind-html="xlTouchslide.trustAsHtml(item.contentMobileHtml)" xl:touchslide-required="">
                                            <img class="image" src="/media-pub/images/6901/num05.jpg.314360'slideshow-landscape'it-IT'bLG.png"/>
                                            <div class="caption ng-scope">
                                                <p class="ng-binding">Immagine 5</p>
                                            </div>
                                        </li>
                                        <!-- end ngRepeat: item in mediaItems track by $index -->

XML Tools version: 3.1.1.13 Notepad++ version: 8.4.6 Plugin list version: 1.5.4