Commit d153f459 authored by André Simon's avatar André Simon

fixed whitespace output of LaTeX, TeX, ODT and SVG

parent 4c0012a9
......@@ -3,9 +3,10 @@
=== highlight 3.47
12.10.2018
13.10.2018
- fixed xterm256 and truecolor whitespace output #2 (https://gitlab.com/saalen/highlight/issues/90)
- fixed LaTeX, TeX, SVG and ODT whitespace output (regression of 3.45)
- added darkplus theme (https://gitlab.com/saalen/highlight/merge_requests/84)
- converted ChangeLog to AsciiDoc
- allowed state test indicators to match both whitespace (ws) and the enclosing state (others)
......
......@@ -2214,9 +2214,10 @@ void CodeGenerator::processWsState()
*out << closeTags[styleID];
}
*out << maskWsBegin ;
for ( int i=0; i<cntWs && applySyntaxTestCase; i++ ) {
for ( int i=0; i<cntWs; i++ ) {
*out << spacer;
stateTraceCurrent.push_back(ps);
if (applySyntaxTestCase)
stateTraceCurrent.push_back(ps);
}
*out << maskWsEnd;
if ( excludeWs && styleID!=_UNKNOWN ) {
......
......@@ -24,7 +24,7 @@ CFLAGS:=-Wall -O2 ${CFLAGS} -DNDEBUG -std=c++11
CFLAGS_DILU=-fno-strict-aliasing
SO_VERSION=3.45
SO_VERSION=3.47
# Source paths
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment