Skip to content

Commit

Permalink
Fixing comments and removing useless Regular Expression
Browse files Browse the repository at this point in the history
  • Loading branch information
monambike committed May 3, 2021
1 parent ec87f79 commit 6cab244
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/Debug/netcoreapp3.1/pdfconverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ def conversionStart(conversionMethod, tableDataFrame):
try:
# Deleta todas as linhas que estão completamente vazias
tableDataFrame = tableDataFrame.dropna(how="all")
# Deleta todas as colunas que estão completamente vazias
tableDataFrame = tableDataFrame.dropna(how="all", axis=1)

turnHeaderInSimpleRow(tableDataFrame)
Expand Down Expand Up @@ -448,9 +449,8 @@ def formatTextFile(conversionMethod):
(;\"\")| # Remove (;"")
(\"\";)| # Remove ("";)
((?<=\");(?!.))| # Remove pontos e vírgulas que estão no final da linha
((?<!\")\n)| # Remove quebras de linha caso seja no meio dos dados,
((?<!\")\n) # Remove quebras de linha caso seja no meio dos dados,
# ou seja, caso não possua " atrás da quebra de linha
(?<=\d)\.0(?=\") # Remove os '0's indesejados à direita
""",

Expand Down

0 comments on commit 6cab244

Please sign in to comment.