We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug The align parameter in functions such as new_paragraph has no effect on tables.
align
new_paragraph
To Reproduce
All three tables printed below are center-aligned. This is not the desired behavior.
import subprocess from mdutils.mdutils import MdUtils from mdutils import Html import pandas as pd mdFile = MdUtils(file_name="Example_Markdown", title="Markdown File Example") mdFile.new_header(level=1, title="Overview") # style is set 'atx' format by default. d = {"col1": [1, 2], "col2": [3, 4]} df = pd.DataFrame(data=d) mdFile.new_paragraph(df.to_markdown(index=False)) mdFile.new_paragraph() mdFile.new_paragraph(df.to_markdown(index=False), align="center") mdFile.new_paragraph() mdFile.new_paragraph(df.to_markdown(index=False), align="left") mdFile.create_md_file() subprocess.run( "pandoc Example_Markdown.md -o Example_Markdown.pdf", shell=True, check=False, )
Expected behavior I expect left alignment with align="left". I'm not sure what the behavior for the default parameter "" should be.
align="left"
""
Screenshots /
Desktop (please complete the following information):
Additional context /
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
The
align
parameter in functions such asnew_paragraph
has no effect on tables.To Reproduce
All three tables printed below are center-aligned. This is not the desired behavior.
Expected behavior
I expect left alignment with
align="left"
. I'm not sure what the behavior for the default parameter""
should be.Screenshots
/
Desktop (please complete the following information):
Additional context
/
The text was updated successfully, but these errors were encountered: