Skip to content

Commit

Permalink
Merge branch 'DaumAlexande-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikitex70 committed May 9, 2024
2 parents 329f74a + b9fe138 commit fdd873d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plantuml_markdown/plantuml_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,9 +553,9 @@ def _readFileRec(self, lines: List[str], directory: str) -> List[str]:
if match:
# variable definition, save the mapping as the value can be used in !include directives
self._definitions[match.group('varname')] = match.group('value')
result.append(line)
result.append(line_striped)
elif line_striped.startswith("!include"):
result.append(self._readInclLine(line_striped, directory))
result.append(self._readInclLine(line_striped, directory).strip())
elif line_striped.startswith("@start"):
# remove startuml as plantuml POST method doesn't like it in include files
# we will wrap the whole combined text between start and end tags at the end
Expand All @@ -566,7 +566,7 @@ def _readFileRec(self, lines: List[str], directory: str) -> List[str]:
# we will wrap the whole combined text between start and end tags at the end
continue
else:
result.append(line)
result.append(line_striped)

return result

Expand Down

0 comments on commit fdd873d

Please sign in to comment.