Skip to content

Commit fdd873d

Browse files
committed
Merge branch 'DaumAlexande-master'
2 parents 329f74a + b9fe138 commit fdd873d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

plantuml_markdown/plantuml_markdown.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,9 +553,9 @@ def _readFileRec(self, lines: List[str], directory: str) -> List[str]:
553553
if match:
554554
# variable definition, save the mapping as the value can be used in !include directives
555555
self._definitions[match.group('varname')] = match.group('value')
556-
result.append(line)
556+
result.append(line_striped)
557557
elif line_striped.startswith("!include"):
558-
result.append(self._readInclLine(line_striped, directory))
558+
result.append(self._readInclLine(line_striped, directory).strip())
559559
elif line_striped.startswith("@start"):
560560
# remove startuml as plantuml POST method doesn't like it in include files
561561
# we will wrap the whole combined text between start and end tags at the end
@@ -566,7 +566,7 @@ def _readFileRec(self, lines: List[str], directory: str) -> List[str]:
566566
# we will wrap the whole combined text between start and end tags at the end
567567
continue
568568
else:
569-
result.append(line)
569+
result.append(line_striped)
570570

571571
return result
572572

0 commit comments

Comments
 (0)