update to grid-table generator
This commit is contained in:
parent
09408da7ca
commit
37d8c8e30f
2 changed files with 19 additions and 14 deletions
|
@ -51,14 +51,14 @@ class MarkdownGenerator:
|
||||||
h = textwrap.wrap(k, h_len, break_long_words=False)
|
h = textwrap.wrap(k, h_len, break_long_words=False)
|
||||||
wrapper = textwrap.TextWrapper(d_len)
|
wrapper = textwrap.TextWrapper(d_len)
|
||||||
|
|
||||||
# t = [wrapper.wrap(line) for line in v.split('\n')] # if line != ''
|
# split test to wrap lines into correct length
|
||||||
# t = list(itertools.chain.from_iterable(t))
|
|
||||||
|
|
||||||
t = [wrapper.wrap(line) for line in v.split('\n')]
|
t = [wrapper.wrap(line) for line in v.split('\n')]
|
||||||
|
|
||||||
|
# replace empty arrays from split with a empty string
|
||||||
t = list(map(lambda e: [""] if e == [] else e, t))
|
t = list(map(lambda e: [""] if e == [] else e, t))
|
||||||
t = list(itertools.chain.from_iterable(t))
|
|
||||||
|
|
||||||
|
# zip items of list
|
||||||
|
t = list(itertools.chain.from_iterable(t))
|
||||||
|
|
||||||
# get rows
|
# get rows
|
||||||
rows = list(itertools.zip_longest(h,t,fillvalue=""))
|
rows = list(itertools.zip_longest(h,t,fillvalue=""))
|
||||||
|
|
|
@ -42,13 +42,18 @@ goal:
|
||||||
|
|
||||||
content:
|
content:
|
||||||
de: |
|
de: |
|
||||||
|
Inhalte:
|
||||||
|
|
||||||
* Wahrnehmung
|
* Wahrnehmung
|
||||||
* Visuelle Gestaltung von Graphischen Nutzerschnittstellen
|
* Visuelle Gestaltung von Graphischen Nutzerschnittstellen
|
||||||
* Applikationsdesign mit Fokus auf GUI Konzepte
|
* Applikationsdesign mit Fokus auf GUI Konzepte
|
||||||
* Nutzerstudien
|
* Nutzerstudien
|
||||||
* Evaluierungsmethoden mit interaktiven Systemen
|
* Evaluierungsmethoden mit interaktiven Systemen
|
||||||
* Statistikmethoden für UX-Design
|
* Statistikmethoden für UX-Design
|
||||||
|
|
||||||
en: |
|
en: |
|
||||||
|
Content:
|
||||||
|
|
||||||
* visual perception
|
* visual perception
|
||||||
* design of graphical user interfaces
|
* design of graphical user interfaces
|
||||||
* application design with focus on GUI concepts
|
* application design with focus on GUI concepts
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue