Skip to content

Commit

Permalink
fixup! fix(jira2markdown): process windows line breaks as a Unix line…
Browse files Browse the repository at this point in the history
… breaks
  • Loading branch information
catcombo committed Oct 7, 2024
1 parent 863ec80 commit 05ce8bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jira2markdown/markup/advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def action(self, tokens: ParseResults) -> str:
prefix = ""

text = self.markup.transform_string(
"".join([line.lstrip() for line in tokens.text.strip().splitlines(keepends=True)])
"".join([line.lstrip() for line in tokens.text.strip().splitlines(keepends=True)]),
)
return prefix + "".join([f"> {line}" for line in text.splitlines(keepends=True)])

Expand Down
2 changes: 1 addition & 1 deletion jira2markdown/markup/text_effects.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def expr(self) -> ParserElement:
class BlockQuote(AbstractMarkup):
def action(self, tokens: ParseResults) -> str:
text = self.markup.transform_string(
"".join([line.lstrip() for line in tokens[0].strip().splitlines(keepends=True)])
"".join([line.lstrip() for line in tokens[0].strip().splitlines(keepends=True)]),
)
return "".join([f"> {line}" for line in text.splitlines(keepends=True)])

Expand Down

0 comments on commit 05ce8bb

Please sign in to comment.