diff options
author | Andrej Rode <mail@andrejro.de> | 2018-07-24 18:54:30 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2018-07-30 16:45:39 +0200 |
commit | 744f658316a20dbbb14d01092742c446c7b95522 (patch) | |
tree | f076d91d6d54c576543947c5929ee4cb1f3e135e /grc/gui/PropsDialog.py | |
parent | 55bfe6683ef7fe810a642d71a6af983f21b9842a (diff) |
grc: fix docs parsing without losing docs
Diffstat (limited to 'grc/gui/PropsDialog.py')
-rw-r--r-- | grc/gui/PropsDialog.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/grc/gui/PropsDialog.py b/grc/gui/PropsDialog.py index ac4506a3d8..4dc98ff1ab 100644 --- a/grc/gui/PropsDialog.py +++ b/grc/gui/PropsDialog.py @@ -211,18 +211,18 @@ class PropsDialog(Gtk.Dialog): buf.delete(buf.get_start_iter(), buf.get_end_iter()) pos = buf.get_end_iter() - docstrings = self._block.documentation + docstrings = self._block.documentation.copy() if not docstrings: return - # show documentation string from block xml - from_xml = docstrings.pop('', '') - for line in from_xml.splitlines(): + # show documentation string from block yaml + from_yaml = docstrings.pop('', '') + for line in from_yaml.splitlines(): if line.lstrip() == line and line.endswith(':'): buf.insert_with_tags_by_name(pos, line + '\n', 'b') else: buf.insert(pos, line + '\n') - if from_xml: + if from_yaml: buf.insert(pos, '\n') # if given the current parameters an exact match can be made |