Skip to content

Commit

Permalink
Merge pull request #12 from rabix/bugfix/docstring_too_long
Browse files Browse the repository at this point in the history
Bugfix/docstring too long
  • Loading branch information
pavlemarinkovic authored Mar 5, 2025
2 parents 5f228f8 + 686a928 commit 0b9c4d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wrabbit/parser/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def __str__(self):
# This part contains constants related to image generation for Markdown

# Find Markdown images
REGEX_MD_IMAGE = r'((?:!|)\[([^\[\]]+)]\(([^\[\]\(\)]+\.((?:jpe?g|png)))({opt}#gh-{image_mode}-mode-only|)((?:#sbg_.*|))\))'
REGEX_MD_IMAGE = r'((?:!|)\[([^\[\]]+)]\(([^\[\]\(\)]+\.((?:jpe?g|png)))({opt}#gh-{image_mode}-mode-only|)((?:#sbg_.*|))(?:\s[^\s]+|)\))'
# Find <p><img> in HTML
REGEX_HTML_IMAGE = r'(?:<p(?:[^>]+)>.*?)<img[^>]+>(?:.*?</p>)'
# Find <h><picture> in HTML
Expand Down
2 changes: 1 addition & 1 deletion wrabbit/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.3.0"
__version__ = "0.3.1"
4 changes: 3 additions & 1 deletion wrabbit/wrapper/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ def add_hint(self, hint):
self.hints.append(hint)

def add_docs(self, doc):
self.doc = doc
# Newline character protects the first line in the CWL from being too
# long. If the first line is too long this sometimes causes errors.
self.doc = "\n" + doc

def add_revision_note(self, note):
self.revision_note = note
Expand Down

0 comments on commit 0b9c4d0

Please sign in to comment.