File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 5
5
- Updated configure script to look for zlib with pkg-config (Issue #519 )
6
6
- Updated markdown support code to mmd.
7
7
- Fixed handling of whitespace-only nodes (Issue #528 )
8
+ - Fixed handling of tabs in PRE nodes (Issue #529 )
8
9
9
10
10
11
# Changes in HTMLDOC v1.9.18
Original file line number Diff line number Diff line change @@ -5669,10 +5669,13 @@ parse_pre(tree_t *t, /* I - Tree to parse */
5669
5669
5670
5670
case MARKUP_NONE :
5671
5671
for (lineptr = line, dataptr = start->data ;
5672
- *dataptr != ' \0 ' && lineptr < (line + sizeof (line) - 1 );
5672
+ *dataptr != ' \0 ' && lineptr < (line + sizeof (line) - 9 );
5673
5673
dataptr ++)
5674
+ {
5674
5675
if (*dataptr == ' \n ' )
5676
+ {
5675
5677
break ;
5678
+ }
5676
5679
else if (*dataptr == ' \t ' )
5677
5680
{
5678
5681
/* This code changed after 15 years to work around new compiler optimization bugs (Issue #349) */
@@ -5687,6 +5690,7 @@ parse_pre(tree_t *t, /* I - Tree to parse */
5687
5690
*lineptr++ = *dataptr;
5688
5691
col ++;
5689
5692
}
5693
+ }
5690
5694
5691
5695
*lineptr = ' \0 ' ;
5692
5696
You can’t perform that action at this time.
0 commit comments