Skip to content

Commit aaffa75

Browse files
committed
Fix regression in leading whitespace handling (Issue #540)
1 parent 7091efe commit aaffa75

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ v1.9.21 (YYYY-MM-DD)
88
- Updated markdown parser.
99
- Fixed a bug in the new PDF link code (Issue #536)
1010
- Fixed a bug in the number-up code (Issue #539)
11+
- Fixed a regression in leading whitespace handling (Issue #540)
1112

1213

1314
v1.9.20 (2024-12-09)

htmldoc/ps-pdf.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5221,7 +5221,7 @@ parse_paragraph(tree_t *t, /* I - Tree to parse */
52215221
if (temp->markup != MARKUP_A)
52225222
break;
52235223

5224-
if (temp != NULL && temp->markup == MARKUP_NONE && temp->data[0] == ' ' && temp->data[1])
5224+
if (temp != NULL && temp->markup == MARKUP_NONE && temp->data[0] == ' ')
52255225
{
52265226
// Drop leading space...
52275227
temp->data ++;

0 commit comments

Comments
 (0)