Skip to content

Commit

Permalink
GH-70, GH-73: fix unwanted link and table breaks
Browse files Browse the repository at this point in the history
Disable wrap_width by default as it was given a lot of problems with links and tables
  • Loading branch information
Dídac Coll authored and didix21 committed May 31, 2022
1 parent 9cc2a5c commit 5b9bc99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mdutils/mdutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def new_table(self, columns, rows, text, text_align='center', marker=''):

return text_table

def new_paragraph(self, text='', bold_italics_code='', color='black', align='', wrap_width=120):
def new_paragraph(self, text='', bold_italics_code='', color='black', align='', wrap_width=0):
"""Add a new paragraph to Markdown file. The text is saved to the global variable file_data_text.
:param text: is a string containing the paragraph text. Optionally, the paragraph text is returned.
Expand Down Expand Up @@ -250,7 +250,7 @@ def new_paragraph(self, text='', bold_italics_code='', color='black', align='',

return self.file_data_text

def new_line(self, text='', bold_italics_code='', color='black', align='', wrap_width=120):
def new_line(self, text='', bold_italics_code='', color='black', align='', wrap_width=0):
"""Add a new line to Markdown file. The text is saved to the global variable file_data_text.
:param text: is a string containing the paragraph text. Optionally, the paragraph text is returned.
Expand Down Expand Up @@ -279,7 +279,7 @@ def new_line(self, text='', bold_italics_code='', color='black', align='', wrap_

return self.file_data_text

def write(self, text='', bold_italics_code='', color='black', align='', marker='', wrap_width=120):
def write(self, text='', bold_italics_code='', color='black', align='', marker='', wrap_width=0):
"""Write text in ``file_Data_text`` string.
:param text: a text a string.
Expand Down

0 comments on commit 5b9bc99

Please sign in to comment.