Bold NB paragraph in relocation table with red NB: keyword
Browse files
app/services/normalizer.py
CHANGED
|
@@ -689,8 +689,15 @@ def _build_relocation_spanning_rows(
|
|
| 689 |
if pi == 0:
|
| 690 |
# First paragraph: bold italic
|
| 691 |
parts_html.append('<strong><em>' + escaped + '</em></strong>')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 692 |
else:
|
| 693 |
-
#
|
| 694 |
parts_html.append('<span class="hb-merged-note-nb">' + escaped + '</span>')
|
| 695 |
merged_html = '<br/><br/>'.join(parts_html)
|
| 696 |
right = {
|
|
|
|
| 689 |
if pi == 0:
|
| 690 |
# First paragraph: bold italic
|
| 691 |
parts_html.append('<strong><em>' + escaped + '</em></strong>')
|
| 692 |
+
elif escaped.upper().startswith('NB:'):
|
| 693 |
+
# NB paragraphs: bold with red "NB:" keyword
|
| 694 |
+
parts_html.append(
|
| 695 |
+
'<strong><span class="hb-note-keyword">NB:</span>'
|
| 696 |
+
+ escaped[3:]
|
| 697 |
+
+ '</strong>'
|
| 698 |
+
)
|
| 699 |
else:
|
| 700 |
+
# Other subsequent paragraphs: regular weight
|
| 701 |
parts_html.append('<span class="hb-merged-note-nb">' + escaped + '</span>')
|
| 702 |
merged_html = '<br/><br/>'.join(parts_html)
|
| 703 |
right = {
|