Skip to content

Commit 0c7b8a2

Browse files
committed
Merge pull request '[jsdoc] Fix replace <br> tag' (#93) from fix/js-doc into hotfix/v9.0.3
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/build_tools/pulls/93
2 parents 9e31770 + 9b5b3eb commit 0c7b8a2

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

scripts/sdkjs_common/jsdoc/office-api/generate_docs_md.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ def correct_description(string, root='', isInTable=False):
9191
if False == isInTable:
9292
# Line breaks
9393
string = string.replace('\r', '\\\n')
94+
# Replace <b> tags with Markdown bold formatting
95+
string = re.sub(r'<b>', '-**', string)
96+
else:
97+
string = re.sub(r'<b>', '**', string)
9498

95-
# Replace <b> tags with Markdown bold formatting
96-
string = re.sub(r'<b>', '-**', string)
9799
string = re.sub(r'</b>', '**', string)
98100

99101
# Replace <note> tags with an icon and text

scripts/sdkjs_common/jsdoc/plugins/generate_docs_events_md.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ def correct_description(string, root='', isInTable=False):
5050
if False == isInTable:
5151
# Line breaks
5252
string = string.replace('\r', '\\\n')
53+
# Replace <b> tags with Markdown bold formatting
54+
string = re.sub(r'<b>', '-**', string)
55+
else:
56+
string = re.sub(r'<b>', '**', string)
5357

54-
# Replace <b> tags with Markdown bold formatting
55-
string = re.sub(r'<b>', '-**', string)
5658
string = re.sub(r'</b>', '**', string)
5759

5860
# Replace <note> tags with an icon and text

scripts/sdkjs_common/jsdoc/plugins/generate_docs_methods_md.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,11 @@ def correct_description(string, root='', isInTable=False):
9494
if False == isInTable:
9595
# Line breaks
9696
string = string.replace('\r', '\\\n')
97+
# Replace <b> tags with Markdown bold formatting
98+
string = re.sub(r'<b>', '-**', string)
99+
else:
100+
string = re.sub(r'<b>', '**', string)
97101

98-
# Replace <b> tags with Markdown bold formatting
99-
string = re.sub(r'<b>', '-**', string)
100102
string = re.sub(r'</b>', '**', string)
101103

102104
# Replace <note> tags with an icon and text

0 commit comments

Comments
 (0)