Skip to content

Simplify Table Loop by encapsulating peek/look behind logic#25

Merged
hf-kklein merged 5 commits intomainfrom
encapsulate_future
Jan 15, 2023
Merged

Simplify Table Loop by encapsulating peek/look behind logic#25
hf-kklein merged 5 commits intomainfrom
encapsulate_future

Conversation

@hf-kklein
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/ebddocx2table/docxtableconverter.py
Comment thread src/ebddocx2table/docxtableconverter.py Outdated
Comment on lines +93 to +99
@dataclasses.dataclass
class _EnhancedDocxTableLine:
"""
A structure that primarily contains a single row from a DOCX table but also meta information about previous and
following elements in the table. It gathers information that are not directly accessible when only looking at one
single row.
"""
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Die idee bei diesem PR ist, dass wir die Probleme, die bisher in einer großen Loop gelöst werden auf zwei Methoden aufteilen.

Damit

  • trennen/entkoppeln wir die Probleme
  • durch die Entkopplung vereinfachen wir die Tests
  • erhöhen die Lesbarkeit
  • verringern die Anzahl der Variablen (ein pylint-disable weniger)

@hf-kklein hf-kklein changed the title Simplify Table Loop by encapsulating peek/look behind Simplify Table Loop by encapsulating peek/look behind logic Jan 11, 2023
@hf-kklein hf-kklein merged commit 1f8d46c into main Jan 15, 2023
@hf-kklein hf-kklein deleted the encapsulate_future branch January 15, 2023 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants