diff --git a/rendercv/themes/markdown/PublicationEntry.j2.md b/rendercv/themes/markdown/PublicationEntry.j2.md index 790c985..115c632 100644 --- a/rendercv/themes/markdown/PublicationEntry.j2.md +++ b/rendercv/themes/markdown/PublicationEntry.j2.md @@ -1,5 +1,9 @@ ## <> ((* if entry.doi != "" *))([<>](<>))((* endif *)) -((* if entry.date_string *))- <> ((* endif *)) +((* if entry.date_string *)) +- <> +((* endif *)) - <> -((* if entry.journal != "" *))- <> ((* endif *)) +((* if entry.journal != "" *)) +- <> +((* endif *)) diff --git a/rendercv/themes/markdown/SectionBeginning.j2.md b/rendercv/themes/markdown/SectionBeginning.j2.md index 5d2a0c8..409e29e 100644 --- a/rendercv/themes/markdown/SectionBeginning.j2.md +++ b/rendercv/themes/markdown/SectionBeginning.j2.md @@ -1 +1 @@ -# <> \ No newline at end of file +# <> diff --git a/tests/test_cli.py b/tests/test_cli.py index ee3ea55..91e0d74 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -46,6 +46,11 @@ def test_error_without_text(): cli.error() +def test_error_without_text_with_exception(): + with pytest.raises(typer.Exit): + cli.error(exception=ValueError("This is an error message.")) + + def test_information(): cli.information("This is an information message.") diff --git a/tests/testdata/test_generate_markdown_file/classic_filled.md b/tests/testdata/test_generate_markdown_file/classic_filled.md index 32d4660..086e304 100644 --- a/tests/testdata/test_generate_markdown_file/classic_filled.md +++ b/tests/testdata/test_generate_markdown_file/classic_filled.md @@ -39,22 +39,30 @@ This is a *TextEntry*. It is only a text and can be useful for sections like **S ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils - J. Doe, **H. Tom**, S. Doe, A. Andsurname -- IEEE Transactions on Applied Superconductivity +- IEEE Transactions on Applied Superconductivity + ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils -- Sept. 2021 - J. Doe, **H. Tom**, S. Doe, A. Andsurname +- Sept. 2021 +- J. Doe, **H. Tom**, S. Doe, A. Andsurname ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils ([10.1109/TASC.2023.3340648](https://doi.org/10.1109/TASC.2023.3340648)) - J. Doe, **H. Tom**, S. Doe, A. Andsurname -- IEEE Transactions on Applied Superconductivity +- IEEE Transactions on Applied Superconductivity + ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils ([10.1109/TASC.2023.3340648](https://doi.org/10.1109/TASC.2023.3340648)) -- Sept. 2021 - J. Doe, **H. Tom**, S. Doe, A. Andsurname +- Sept. 2021 +- J. Doe, **H. Tom**, S. Doe, A. Andsurname ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils -- Sept. 2021 - J. Doe, **H. Tom**, S. Doe, A. Andsurname -- IEEE Transactions on Applied Superconductivity +- Sept. 2021 +- J. Doe, **H. Tom**, S. Doe, A. Andsurname +- IEEE Transactions on Applied Superconductivity + ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils ([10.1109/TASC.2023.3340648](https://doi.org/10.1109/TASC.2023.3340648)) -- Sept. 2021 - J. Doe, **H. Tom**, S. Doe, A. Andsurname -- IEEE Transactions on Applied Superconductivity +- Sept. 2021 +- J. Doe, **H. Tom**, S. Doe, A. Andsurname +- IEEE Transactions on Applied Superconductivity + # Experience Entries ## Some **Company**, Software Engineer diff --git a/tests/testdata/test_generate_markdown_file/engineeringresumes_filled.md b/tests/testdata/test_generate_markdown_file/engineeringresumes_filled.md index 32d4660..086e304 100644 --- a/tests/testdata/test_generate_markdown_file/engineeringresumes_filled.md +++ b/tests/testdata/test_generate_markdown_file/engineeringresumes_filled.md @@ -39,22 +39,30 @@ This is a *TextEntry*. It is only a text and can be useful for sections like **S ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils - J. Doe, **H. Tom**, S. Doe, A. Andsurname -- IEEE Transactions on Applied Superconductivity +- IEEE Transactions on Applied Superconductivity + ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils -- Sept. 2021 - J. Doe, **H. Tom**, S. Doe, A. Andsurname +- Sept. 2021 +- J. Doe, **H. Tom**, S. Doe, A. Andsurname ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils ([10.1109/TASC.2023.3340648](https://doi.org/10.1109/TASC.2023.3340648)) - J. Doe, **H. Tom**, S. Doe, A. Andsurname -- IEEE Transactions on Applied Superconductivity +- IEEE Transactions on Applied Superconductivity + ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils ([10.1109/TASC.2023.3340648](https://doi.org/10.1109/TASC.2023.3340648)) -- Sept. 2021 - J. Doe, **H. Tom**, S. Doe, A. Andsurname +- Sept. 2021 +- J. Doe, **H. Tom**, S. Doe, A. Andsurname ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils -- Sept. 2021 - J. Doe, **H. Tom**, S. Doe, A. Andsurname -- IEEE Transactions on Applied Superconductivity +- Sept. 2021 +- J. Doe, **H. Tom**, S. Doe, A. Andsurname +- IEEE Transactions on Applied Superconductivity + ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils ([10.1109/TASC.2023.3340648](https://doi.org/10.1109/TASC.2023.3340648)) -- Sept. 2021 - J. Doe, **H. Tom**, S. Doe, A. Andsurname -- IEEE Transactions on Applied Superconductivity +- Sept. 2021 +- J. Doe, **H. Tom**, S. Doe, A. Andsurname +- IEEE Transactions on Applied Superconductivity + # Experience Entries ## Some **Company**, Software Engineer diff --git a/tests/testdata/test_generate_markdown_file/moderncv_filled.md b/tests/testdata/test_generate_markdown_file/moderncv_filled.md index 32d4660..086e304 100644 --- a/tests/testdata/test_generate_markdown_file/moderncv_filled.md +++ b/tests/testdata/test_generate_markdown_file/moderncv_filled.md @@ -39,22 +39,30 @@ This is a *TextEntry*. It is only a text and can be useful for sections like **S ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils - J. Doe, **H. Tom**, S. Doe, A. Andsurname -- IEEE Transactions on Applied Superconductivity +- IEEE Transactions on Applied Superconductivity + ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils -- Sept. 2021 - J. Doe, **H. Tom**, S. Doe, A. Andsurname +- Sept. 2021 +- J. Doe, **H. Tom**, S. Doe, A. Andsurname ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils ([10.1109/TASC.2023.3340648](https://doi.org/10.1109/TASC.2023.3340648)) - J. Doe, **H. Tom**, S. Doe, A. Andsurname -- IEEE Transactions on Applied Superconductivity +- IEEE Transactions on Applied Superconductivity + ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils ([10.1109/TASC.2023.3340648](https://doi.org/10.1109/TASC.2023.3340648)) -- Sept. 2021 - J. Doe, **H. Tom**, S. Doe, A. Andsurname +- Sept. 2021 +- J. Doe, **H. Tom**, S. Doe, A. Andsurname ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils -- Sept. 2021 - J. Doe, **H. Tom**, S. Doe, A. Andsurname -- IEEE Transactions on Applied Superconductivity +- Sept. 2021 +- J. Doe, **H. Tom**, S. Doe, A. Andsurname +- IEEE Transactions on Applied Superconductivity + ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils ([10.1109/TASC.2023.3340648](https://doi.org/10.1109/TASC.2023.3340648)) -- Sept. 2021 - J. Doe, **H. Tom**, S. Doe, A. Andsurname -- IEEE Transactions on Applied Superconductivity +- Sept. 2021 +- J. Doe, **H. Tom**, S. Doe, A. Andsurname +- IEEE Transactions on Applied Superconductivity + # Experience Entries ## Some **Company**, Software Engineer diff --git a/tests/testdata/test_generate_markdown_file/sb2nov_filled.md b/tests/testdata/test_generate_markdown_file/sb2nov_filled.md index 32d4660..086e304 100644 --- a/tests/testdata/test_generate_markdown_file/sb2nov_filled.md +++ b/tests/testdata/test_generate_markdown_file/sb2nov_filled.md @@ -39,22 +39,30 @@ This is a *TextEntry*. It is only a text and can be useful for sections like **S ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils - J. Doe, **H. Tom**, S. Doe, A. Andsurname -- IEEE Transactions on Applied Superconductivity +- IEEE Transactions on Applied Superconductivity + ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils -- Sept. 2021 - J. Doe, **H. Tom**, S. Doe, A. Andsurname +- Sept. 2021 +- J. Doe, **H. Tom**, S. Doe, A. Andsurname ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils ([10.1109/TASC.2023.3340648](https://doi.org/10.1109/TASC.2023.3340648)) - J. Doe, **H. Tom**, S. Doe, A. Andsurname -- IEEE Transactions on Applied Superconductivity +- IEEE Transactions on Applied Superconductivity + ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils ([10.1109/TASC.2023.3340648](https://doi.org/10.1109/TASC.2023.3340648)) -- Sept. 2021 - J. Doe, **H. Tom**, S. Doe, A. Andsurname +- Sept. 2021 +- J. Doe, **H. Tom**, S. Doe, A. Andsurname ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils -- Sept. 2021 - J. Doe, **H. Tom**, S. Doe, A. Andsurname -- IEEE Transactions on Applied Superconductivity +- Sept. 2021 +- J. Doe, **H. Tom**, S. Doe, A. Andsurname +- IEEE Transactions on Applied Superconductivity + ## Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils ([10.1109/TASC.2023.3340648](https://doi.org/10.1109/TASC.2023.3340648)) -- Sept. 2021 - J. Doe, **H. Tom**, S. Doe, A. Andsurname -- IEEE Transactions on Applied Superconductivity +- Sept. 2021 +- J. Doe, **H. Tom**, S. Doe, A. Andsurname +- IEEE Transactions on Applied Superconductivity + # Experience Entries ## Some **Company**, Software Engineer diff --git a/tests/testdata/test_markdown_to_html/classic_filled.html b/tests/testdata/test_markdown_to_html/classic_filled.html index f3d73b8..40aeaa3 100644 --- a/tests/testdata/test_markdown_to_html/classic_filled.html +++ b/tests/testdata/test_markdown_to_html/classic_filled.html @@ -37,30 +37,34 @@

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils

  • J. Doe, H. Tom, S. Doe, A. Andsurname
  • -
  • IEEE Transactions on Applied Superconductivity
  • +
  • IEEE Transactions on Applied Superconductivity

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils

    -
  • Sept. 2021 - J. Doe, H. Tom, S. Doe, A. Andsurname
  • +
  • Sept. 2021
  • +
  • J. Doe, H. Tom, S. Doe, A. Andsurname

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils (10.1109/TASC.2023.3340648)

  • J. Doe, H. Tom, S. Doe, A. Andsurname
  • -
  • IEEE Transactions on Applied Superconductivity
  • +
  • IEEE Transactions on Applied Superconductivity

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils (10.1109/TASC.2023.3340648)

    -
  • Sept. 2021 - J. Doe, H. Tom, S. Doe, A. Andsurname
  • +
  • Sept. 2021
  • +
  • J. Doe, H. Tom, S. Doe, A. Andsurname

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils

    -
  • Sept. 2021 - J. Doe, H. Tom, S. Doe, A. Andsurname
  • -
  • IEEE Transactions on Applied Superconductivity
  • +
  • Sept. 2021
  • +
  • J. Doe, H. Tom, S. Doe, A. Andsurname
  • +
  • IEEE Transactions on Applied Superconductivity

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils (10.1109/TASC.2023.3340648)

    -
  • Sept. 2021 - J. Doe, H. Tom, S. Doe, A. Andsurname
  • -
  • IEEE Transactions on Applied Superconductivity
  • +
  • Sept. 2021
  • +
  • J. Doe, H. Tom, S. Doe, A. Andsurname
  • +
  • IEEE Transactions on Applied Superconductivity

Experience Entries

Some Company, Software Engineer

diff --git a/tests/testdata/test_markdown_to_html/engineeringresumes_filled.html b/tests/testdata/test_markdown_to_html/engineeringresumes_filled.html index f3d73b8..40aeaa3 100644 --- a/tests/testdata/test_markdown_to_html/engineeringresumes_filled.html +++ b/tests/testdata/test_markdown_to_html/engineeringresumes_filled.html @@ -37,30 +37,34 @@

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils

  • J. Doe, H. Tom, S. Doe, A. Andsurname
  • -
  • IEEE Transactions on Applied Superconductivity
  • +
  • IEEE Transactions on Applied Superconductivity

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils

    -
  • Sept. 2021 - J. Doe, H. Tom, S. Doe, A. Andsurname
  • +
  • Sept. 2021
  • +
  • J. Doe, H. Tom, S. Doe, A. Andsurname

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils (10.1109/TASC.2023.3340648)

  • J. Doe, H. Tom, S. Doe, A. Andsurname
  • -
  • IEEE Transactions on Applied Superconductivity
  • +
  • IEEE Transactions on Applied Superconductivity

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils (10.1109/TASC.2023.3340648)

    -
  • Sept. 2021 - J. Doe, H. Tom, S. Doe, A. Andsurname
  • +
  • Sept. 2021
  • +
  • J. Doe, H. Tom, S. Doe, A. Andsurname

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils

    -
  • Sept. 2021 - J. Doe, H. Tom, S. Doe, A. Andsurname
  • -
  • IEEE Transactions on Applied Superconductivity
  • +
  • Sept. 2021
  • +
  • J. Doe, H. Tom, S. Doe, A. Andsurname
  • +
  • IEEE Transactions on Applied Superconductivity

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils (10.1109/TASC.2023.3340648)

    -
  • Sept. 2021 - J. Doe, H. Tom, S. Doe, A. Andsurname
  • -
  • IEEE Transactions on Applied Superconductivity
  • +
  • Sept. 2021
  • +
  • J. Doe, H. Tom, S. Doe, A. Andsurname
  • +
  • IEEE Transactions on Applied Superconductivity

Experience Entries

Some Company, Software Engineer

diff --git a/tests/testdata/test_markdown_to_html/moderncv_filled.html b/tests/testdata/test_markdown_to_html/moderncv_filled.html index f3d73b8..40aeaa3 100644 --- a/tests/testdata/test_markdown_to_html/moderncv_filled.html +++ b/tests/testdata/test_markdown_to_html/moderncv_filled.html @@ -37,30 +37,34 @@

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils

  • J. Doe, H. Tom, S. Doe, A. Andsurname
  • -
  • IEEE Transactions on Applied Superconductivity
  • +
  • IEEE Transactions on Applied Superconductivity

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils

    -
  • Sept. 2021 - J. Doe, H. Tom, S. Doe, A. Andsurname
  • +
  • Sept. 2021
  • +
  • J. Doe, H. Tom, S. Doe, A. Andsurname

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils (10.1109/TASC.2023.3340648)

  • J. Doe, H. Tom, S. Doe, A. Andsurname
  • -
  • IEEE Transactions on Applied Superconductivity
  • +
  • IEEE Transactions on Applied Superconductivity

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils (10.1109/TASC.2023.3340648)

    -
  • Sept. 2021 - J. Doe, H. Tom, S. Doe, A. Andsurname
  • +
  • Sept. 2021
  • +
  • J. Doe, H. Tom, S. Doe, A. Andsurname

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils

    -
  • Sept. 2021 - J. Doe, H. Tom, S. Doe, A. Andsurname
  • -
  • IEEE Transactions on Applied Superconductivity
  • +
  • Sept. 2021
  • +
  • J. Doe, H. Tom, S. Doe, A. Andsurname
  • +
  • IEEE Transactions on Applied Superconductivity

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils (10.1109/TASC.2023.3340648)

    -
  • Sept. 2021 - J. Doe, H. Tom, S. Doe, A. Andsurname
  • -
  • IEEE Transactions on Applied Superconductivity
  • +
  • Sept. 2021
  • +
  • J. Doe, H. Tom, S. Doe, A. Andsurname
  • +
  • IEEE Transactions on Applied Superconductivity

Experience Entries

Some Company, Software Engineer

diff --git a/tests/testdata/test_markdown_to_html/sb2nov_filled.html b/tests/testdata/test_markdown_to_html/sb2nov_filled.html index f3d73b8..40aeaa3 100644 --- a/tests/testdata/test_markdown_to_html/sb2nov_filled.html +++ b/tests/testdata/test_markdown_to_html/sb2nov_filled.html @@ -37,30 +37,34 @@

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils

  • J. Doe, H. Tom, S. Doe, A. Andsurname
  • -
  • IEEE Transactions on Applied Superconductivity
  • +
  • IEEE Transactions on Applied Superconductivity

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils

    -
  • Sept. 2021 - J. Doe, H. Tom, S. Doe, A. Andsurname
  • +
  • Sept. 2021
  • +
  • J. Doe, H. Tom, S. Doe, A. Andsurname

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils (10.1109/TASC.2023.3340648)

  • J. Doe, H. Tom, S. Doe, A. Andsurname
  • -
  • IEEE Transactions on Applied Superconductivity
  • +
  • IEEE Transactions on Applied Superconductivity

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils (10.1109/TASC.2023.3340648)

    -
  • Sept. 2021 - J. Doe, H. Tom, S. Doe, A. Andsurname
  • +
  • Sept. 2021
  • +
  • J. Doe, H. Tom, S. Doe, A. Andsurname

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils

    -
  • Sept. 2021 - J. Doe, H. Tom, S. Doe, A. Andsurname
  • -
  • IEEE Transactions on Applied Superconductivity
  • +
  • Sept. 2021
  • +
  • J. Doe, H. Tom, S. Doe, A. Andsurname
  • +
  • IEEE Transactions on Applied Superconductivity

Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils (10.1109/TASC.2023.3340648)

    -
  • Sept. 2021 - J. Doe, H. Tom, S. Doe, A. Andsurname
  • -
  • IEEE Transactions on Applied Superconductivity
  • +
  • Sept. 2021
  • +
  • J. Doe, H. Tom, S. Doe, A. Andsurname
  • +
  • IEEE Transactions on Applied Superconductivity

Experience Entries

Some Company, Software Engineer