Skip to content

Commit

Permalink
Add test for multi-paragraphs notes
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienCassou committed Mar 25, 2024
1 parent f71092c commit 49a30e1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/ox-linuxmag-fr-tests.el
Expand Up @@ -205,6 +205,18 @@ Le texte
(should (ox-linuxmag-fr-tests-contain "<text:p text:style-name=\"Normal\">Le texte\n</text:p>"))
(should (ox-linuxmag-fr-tests-contain "<text:p text:style-name=\"pragma\">/// Fin note ///</text:p>")))

(ert-deftest ox-linuxmag-fr-tests-paragraph-note-default-several-paragraphs ()
(ox-linuxmag-fr-tests-export "
#+begin_note
Le texte
Autre texte
#+end_note")
(should (ox-linuxmag-fr-tests-contain "<text:p text:style-name=\"pragma\">/// Début note ///</text:p>"))
(should (ox-linuxmag-fr-tests-contain "<text:p text:style-name=\"Normal\">Le texte\n</text:p>"))
(should (ox-linuxmag-fr-tests-contain "<text:p text:style-name=\"Normal\">Autre texte\n</text:p>"))
(should (ox-linuxmag-fr-tests-contain "<text:p text:style-name=\"pragma\">/// Fin note ///</text:p>")))

(ert-deftest ox-linuxmag-fr-tests-paragraph-picture ()
(ox-linuxmag-fr-tests-export "
#+CAPTION: A legend
Expand Down

0 comments on commit 49a30e1

Please sign in to comment.