Skip to content

Commit

Permalink
fix "error: self-closing element not allowed"
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoglom committed Dec 26, 2024
1 parent ab4838a commit 1ff756f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/javadoc_messagecargo.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def build_javadoc(indent, old_javadoc, body):
# merge with existing javadoc
merged = old_javadoc.rstrip()
merged = re.sub(r'\s*\*/\s*$', '', merged) # remove trailing "*/"
merged += f"\n{indent} * <br />\n"
merged += f"\n{indent} * <br>\n"
merged += new_table + "\n"
merged += f"{indent} */\n"
return merged
Expand Down
2 changes: 1 addition & 1 deletion scripts/javadoc_messageparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def build_javadoc(indent, assignments, existing_javadoc=None):
existing_javadoc = re.sub(r'\s*\*\/\s*$', '', javadoc_text)
javadoc = existing_javadoc
javadoc += f"{indent} *"
javadoc += f"{indent} * <br />"
javadoc += f"{indent} * <br>"
javadoc += f"{indent} *"
else:
javadoc = f"{indent}/**\n"
Expand Down
6 changes: 3 additions & 3 deletions scripts/javadoc_messageprops.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,20 @@ def replacement(match):
if javadoc_match and javadoc_match.span(0) < match.span(0):
javadoc = javadoc_match.group(0).replace('*/', '*')
javadoc += f"{indentation} *"
javadoc += f"{indentation} * <br />"
javadoc += f"{indentation} * <br>"
javadoc += f"{indentation} *"
else:
javadoc = f"{indentation}/**"

if 'MessageType#REQUEST' in props.get('type'):
javadoc += f"{indentation} * Request message for {props.get('response')}, opCode {props.get('opCode')}, size {props.get('size')}"
javadoc += f"{indentation} *"
javadoc += f"{indentation} * <br />"
javadoc += f"{indentation} * <br>"
javadoc += f"{indentation} *"
elif 'MessageType#RESPONSE' in props.get('type'):
javadoc += f"{indentation} * Response message for {props.get('request')}, opCode {props.get('opCode')}, size {props.get('size')}"
javadoc += f"{indentation} *"
javadoc += f"{indentation} * <br />"
javadoc += f"{indentation} * <br>"
javadoc += f"{indentation} *"
javadoc += f"{indentation} * "
javadoc += f"{indentation} * <table border='1'>"
Expand Down

0 comments on commit 1ff756f

Please sign in to comment.