Giter Club home page Giter Club logo

cidlib's People

Contributors

deanroddey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cidlib's Issues

XMLFormat pretty mode improper quote escaping

XMLFormat pretty mode corrupts a Microsoft Open XML file/Excel 2015 styles file.

Attached is a test file before and after pretty formatting.

Excel error generated:

Removed Part: /xl/styles.xml part with XML error. (Styles) Whitespace expected. Line 4, column 43.

Before section:

<numFmt numFmtId="164" formatCode="&quot;$&quot;#,##0.00"/>

After section:

<numFmt numFmtId="164" formatCode=""$"#,##0.00"/>

styles_after.txt
styles_before.txt

XMLFormat standard output weirdness

XMLFormat behaves oddly when used in a makefile in Visual Studio 2017. The makefile line immediately after the XMLFormat line will display unprintable characters instead of tabs and CR/LF's.

The makefile echoes message 1, then XMLFormat, then message 2, then message 3. Message 2 is affected, and message 3 is OK.

Add XMLFormat to the path and run "nmake test" from the Visual Studio 2017 developer prompt

repro.zip
image

XMLFormat pretty mode interjects more carriage returns

Attached is a test file (Microsoft Open XML file/Excel 2015).

XMLFormat pretty mode will generate inconsistent output of cell formulas.

Example 1 output:

<f t="shared" ref="I7:I38" ca="1" si="3">$I6+$M6</f>

Example 2 output:

<f t="shared" ref="J7:J38" ca="1" si="4">
IFERROR(NPER(SP_MortRate/12,PMT(SP_MortRate/12,SP_MortNper,SP_MortOriginBalance,0,0)-SP_MortExtraPayment,$I7,0,0),0)
</f>

Example 1 is correct and consistent with the source file. Example 2 interjects a CR/LF before and after the formula value.

It appears the CR/LF interjection behavior is perhaps triggered by the formula exceeding a certain length (60 or so?). This is undesirable as formulas can contain cr/lf characters and the XML data itself shouldn't be changed. All these should be generated consistently with the source file.

sheet9.txt

XMLFormat pretty mode corrupts Microsoft Open XML file

XMLFormat corrupts Microsoft Open XML files with the pretty mode. The XML file created has significant changes and is not rendered correctly by the Edge browser when opened. In addition, if the pretty file is fed back into XMLFormat with the flat mode, it generates the following error:

The parse failed
Expected an attribute name here

The file prior to conversion is attached

sheet9.txt

XMLFormat recurse mode erases all files

If the same directory is used for the srcdir and outdir with overwrite and recurse, it erases every file in the directory regardless of spec.

XMLFormat.exe /SrcDir=xlsm_repo\ /OutDir=xlsm_repo\ /Spec=*.xml /Fmt=Pretty /Overwrite /Recurse

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.