Skip to content

Commit 2c02135

Browse files
committed
🎨 remove unnecesary identation
- less confusing handling of files.
1 parent c8ac5c9 commit 2c02135

File tree

10 files changed

+39
-4
lines changed

10 files changed

+39
-4
lines changed

src/vuegen/config_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def _read_description_file(self, folder_path: Path) -> str:
211211
"""
212212
description_file = folder_path / "description.md"
213213
if description_file.exists():
214-
ret = description_file.read_text().strip().replace("\n", "\n ")
214+
ret = description_file.read_text().strip()
215215
return f"{ret}\n"
216216
return ""
217217

src/vuegen/quarto_reportview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def generate_report(self, output_dir: Optional[Path] = None) -> None:
129129

130130
# Add description of the report
131131
if self.report.description:
132-
qmd_content.append(f"""{self.report.description}""")
132+
qmd_content.append(self.report.description)
133133

134134
# If available add the graphical abstract
135135
if self.report.graphical_abstract:

src/vuegen/streamlit_reportview.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,13 +424,13 @@ def _format_text(
424424
)
425425

426426
text = text.strip() # get rid of new lines
427-
text = textwrap.indent(text, " ")
427+
text = textwrap.indent(text, " ")
428428
ret = textwrap.dedent(
429429
f"""\
430430
st.markdown(
431431
'''
432432
<{tag} style='text-align: {text_align};
433-
color: {color};'>\n {text}
433+
color: {color};'>\n{text}
434434
</{tag}>
435435
''',
436436
unsafe_allow_html=True)

tests/report_examples/Basic_example_vuegen_demo_notebook/docx/quarto_report/quarto_report.qmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ report_dir = Path().cwd()
2727

2828
A general description of the report.
2929

30+
It should test all major components which are available
31+
to be integrated into VueGen.
32+
33+
Check our tests folder for examples of report files used to generate actual reports.
34+
3035
# Plots
3136
## Interactive Plots
3237
Optional description for section.

tests/report_examples/Basic_example_vuegen_demo_notebook/html/quarto_report/quarto_report.qmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ report_dir = Path().cwd()
5353

5454
A general description of the report.
5555

56+
It should test all major components which are available
57+
to be integrated into VueGen.
58+
59+
Check our tests folder for examples of report files used to generate actual reports.
60+
5661
# Plots
5762
## Interactive Plots
5863
Optional description for section.

tests/report_examples/Basic_example_vuegen_demo_notebook/jupyter/quarto_report/quarto_report.qmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ report_dir = Path().cwd()
5353

5454
A general description of the report.
5555

56+
It should test all major components which are available
57+
to be integrated into VueGen.
58+
59+
Check our tests folder for examples of report files used to generate actual reports.
60+
5661
# Plots
5762
## Interactive Plots
5863
Optional description for section.

tests/report_examples/Basic_example_vuegen_demo_notebook/odt/quarto_report/quarto_report.qmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ report_dir = Path().cwd()
2727

2828
A general description of the report.
2929

30+
It should test all major components which are available
31+
to be integrated into VueGen.
32+
33+
Check our tests folder for examples of report files used to generate actual reports.
34+
3035
# Plots
3136
## Interactive Plots
3237
Optional description for section.

tests/report_examples/Basic_example_vuegen_demo_notebook/pdf/quarto_report/quarto_report.qmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ report_dir = Path().cwd()
3939

4040
A general description of the report.
4141

42+
It should test all major components which are available
43+
to be integrated into VueGen.
44+
45+
Check our tests folder for examples of report files used to generate actual reports.
46+
4247
# Plots
4348
## Interactive Plots
4449
Optional description for section.

tests/report_examples/Basic_example_vuegen_demo_notebook/pptx/quarto_report/quarto_report.qmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ report_dir = Path().cwd()
2828

2929
A general description of the report.
3030

31+
It should test all major components which are available
32+
to be integrated into VueGen.
33+
34+
Check our tests folder for examples of report files used to generate actual reports.
35+
3136
# Plots
3237
## Interactive Plots
3338
Optional description for section.

tests/report_examples/Basic_example_vuegen_demo_notebook/revealjs/quarto_report/quarto_report.qmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ report_dir = Path().cwd()
5454

5555
A general description of the report.
5656

57+
It should test all major components which are available
58+
to be integrated into VueGen.
59+
60+
Check our tests folder for examples of report files used to generate actual reports.
61+
5762
# Plots
5863
## Interactive Plots
5964
Optional description for section.

0 commit comments

Comments
 (0)