Skip to content

Commit 3f9fbbe

Browse files
authored
Update extract_proto_and_sync_to_dita_flutter.py
1 parent dc6440f commit 3f9fbbe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

xml2json/extract_proto_and_sync_to_dita_flutter.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,9 @@ def main():
282282
# t = ET.SubElement(p, "codeblock", {"outputclass": "codeblock", "props": "rtc-ng"})
283283

284284

285-
if child.get("props") == "flutter" and child.tag == "codeblock" and proto != "There are no corresponding names available":
286-
child.text = proto
285+
if child.get("props") == "flutter" and child.tag == "codeblock":
286+
if proto != "There are no corresponding names available":
287+
child.text = proto
287288

288289
# Add a return_values section for flutter
289290
if child.text is not None and "void" in child.text:

0 commit comments

Comments
 (0)