Skip to content

Commit

Permalink
it"s making sense. figured out values only.
Browse files Browse the repository at this point in the history
  • Loading branch information
cweber committed Aug 22, 2014
1 parent d577bd4 commit da72383
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ Referencing:
http://digitalpublishingtoolkit.org/2014/05/import-html-into-indesign-via-xml/
https://docs.python.org/2/library/csv.html
http://www.pythonforbeginners.com/systems-programming/using-the-csv-module-in-python/

Dictionaries
http://www.dotnetperls.com/dictionary-python
4 changes: 2 additions & 2 deletions cookbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
if current_row > 1:
html = html + "<section>\n <ul>\n"

for data in row:
html = html + "<li>" + data + "</li>\n" #how do I describe value in key value pairs?
for data in row.values():
html = html + "<li>" + str(data) + "</li>\n" #how do I describe value in key value pairs?
#possibly list out every row['Title'] as an option and then if None, etc. should be able to loop through all of them generically though.

html = html + "</ul>\n" + "</section\n"
Expand Down

0 comments on commit da72383

Please sign in to comment.