Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New lines are being added on each reformatting #193

Closed
amrtn opened this issue Jun 11, 2018 · 0 comments
Closed

New lines are being added on each reformatting #193

amrtn opened this issue Jun 11, 2018 · 0 comments

Comments

@amrtn
Copy link

amrtn commented Jun 11, 2018

Description

Every time I reformat a XSL file (with the Format As XML tool) new blank lines are automatically added to the file. See example:

Original file:

  <xsl:template name="btn-export-excel-pdf">
    <div class="row">
      <div class="col-md button-wrapper text-center">
        <a class="btn btn-outline-info" role="button" href="javascript:template.printToPdf()" target="_blank">
          <i class="far fa-file-pdf">&#160;</i> Export to PDF                                        
        </a>                  &#160;                                                        
        <a class="btn btn-outline-info" role="button" href="javascript:template.exportToExcel()" target="_blank">
          <i class="far fa-file-excel">&#160;</i> Export to EXCEL                                        
        </a>
      </div>
    </div>
  </xsl:template>

First reformatting

<xsl:template name="btn-export-excel-pdf">
    <div class="row">
      <div class="col-md button-wrapper text-center">
        <a class="btn btn-outline-info" role="button" href="javascript:template.printToPdf()" target="_blank">
          <i class="far fa-file-pdf">&#160;</i> Export to PDF                                        
        
        </a>                  &#160;                                                        
                <a class="btn btn-outline-info" role="button" href="javascript:template.exportToExcel()" target="_blank">
          <i class="far fa-file-excel">&#160;</i> Export to EXCEL                                        
        
        </a>
      </div>
    </div>
  </xsl:template>
  <xsl:template name="btn-export-excel-pdf">
    <div class="row">
      <div class="col-md button-wrapper text-center">
        <a class="btn btn-outline-info" role="button" href="javascript:template.printToPdf()" target="_blank">
          <i class="far fa-file-pdf">&#160;</i> Export to PDF                                        
        
        
        </a>                  &#160;                                                        
                        <a class="btn btn-outline-info" role="button" href="javascript:template.exportToExcel()" target="_blank">
          <i class="far fa-file-excel">&#160;</i> Export to EXCEL                                        
        
        
        </a>
      </div>
    </div>
  </xsl:template>

Formatter Implementation

"xmlTools.xmlFormatterImplementation": "v2",

XML Tools Version

2.2.0

VS Code Version

1.24.0

Operating System

Windows 10

@DotJoshJohnson DotJoshJohnson modified the milestones: Backlog, Release: v2.3.1 Jun 11, 2018
@DotJoshJohnson DotJoshJohnson self-assigned this Jun 13, 2018
DotJoshJohnson added a commit that referenced this issue Jun 13, 2018
DotJoshJohnson added a commit that referenced this issue Jun 13, 2018
This only solves half of the problem.

Issue: #193
DotJoshJohnson added a commit that referenced this issue Jun 13, 2018
@DotJoshJohnson DotJoshJohnson removed their assignment Jun 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants