diff options
author | Ben McGinnes <ben@adversary.org> | 2018-05-25 05:29:24 +1000 |
---|---|---|
committer | Ben McGinnes <ben@adversary.org> | 2018-05-25 05:29:24 +1000 |
commit | 34308fe1fc45cc8ea1f809c54168f418a146f0ca (patch) | |
tree | f10d5ddca6fbd0a7b032b0daf7ffe048f222f6eb | |
parent | dea1ccbc02cafe1c85c8945605d9bb9f46cc5790 (diff) | |
download | gpgme-34308fe1fc45cc8ea1f809c54168f418a146f0ca.tar.gz |
docs: python bindings howto DITA
* Updated the example code for the groups work around to actually do
what the documentation said (instead of having all results match
group_lists).
-rw-r--r-- | lang/python/docs/dita/howto/part06/group-lines.dita | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lang/python/docs/dita/howto/part06/group-lines.dita b/lang/python/docs/dita/howto/part06/group-lines.dita index 50d63df0..f4aca74c 100644 --- a/lang/python/docs/dita/howto/part06/group-lines.dita +++ b/lang/python/docs/dita/howto/part06/group-lines.dita @@ -22,11 +22,13 @@ for i in range(len(lines)): groups = line.split(":")[-1].replace('"', '').split(',') -group_lines = groups -for i in range(len(group_lines)): - group_lines[i] = group_lines[i].split("=") +group_lines = [] +group_lists = [] + +for i in range(len(groups)): + group_lines.append(groups[i].split("=")) + group_lists.append(groups[i].split("=")) -group_lists = group_lines for i in range(len(group_lists)): group_lists[i][1] = group_lists[i][1].split() </codeblock> |