microsoft / microsoft/XmlNotepad

Question: handling of TAB andCRLF in saved XSLT-files

Open
#198 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
1.2k
Forks
240
PR merge metrics
No merged PRs in 30d

Description

I have a XSLT-file which contains TAB and CRLF-definition to create a better readable output, like this

  <xsl:text>&#0009;</xsl:text>
  <xsl:value-of select="./KEY_NUMERIC_OLD"/>
  <xsl:text>&#0009;</xsl:text>
  <xsl:value-of select="./KEY_NUMERIC_NEW"/>
  <xsl:text>&#xa;</xsl:text>

It works fine, but when I opened the file with XMLNotepad and saved it, all the TABs and CRLF are gone. Why?
Related to #166 ?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported behavior by opening and saving the provided XSLT content in XML Notepad, then compare the saved file with the original to identify how TAB and CRLF text nodes change. Read the discussion in related issue #166 for context. Done means the behavior is explained and any required preservation or warning is clearly specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.