Date: prev next · Thread: first prev next last
2024 Archives by date, by thread · List index


Bonjour,

Ce n'est pas un "saut de ligne" qu'il cherche à remplacer, mais un "saut de page" Mais Libo ne code pas le saut de page comme le caractère Unicode (000C = Form Feed) mais comme un "attribut" du premier paragraphe de la page.

Voici comment dans le fichier "content.xml" c'est indiqué :
"------------fichier content.xml----------------------
  <office:automatic-styles>
    <style:style style:name="P1" style:family="paragraph" style:parent-style-name="Standard">       <style:text-properties officeooo:rsid="00119106" officeooo:paragraph-rsid="00119106"/>
    </style:style>
    <style:style style:name="P2" style:family="paragraph" style:parent-style-name="Standard">
      <style:paragraph-properties fo:break-before="page"/>
      <style:text-properties officeooo:rsid="00119106" officeooo:paragraph-rsid="00119106"/>
    </style:style>
  </office:automatic-styles>
  <office:body>
    <office:text text:use-soft-page-breaks="true">
      <text:sequence-decls>
        <text:sequence-decl text:display-outline-level="0" text:name="Illustration"/>         <text:sequence-decl text:display-outline-level="0" text:name="Table"/>         <text:sequence-decl text:display-outline-level="0" text:name="Text"/>         <text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>         <text:sequence-decl text:display-outline-level="0" text:name="Figure"/>
      </text:sequence-decls>
      <text:p text:style-name="P1">page 1</text:p>
      <text:p text:style-name="P1"/>
      <text:p text:style-name="P1"/>
      <text:p text:style-name="P1"/>
      <text:p text:style-name="P2">Page 2</text:p>
      <text:p text:style-name="P1"/>
      <text:p text:style-name="P1"/>
    </office:text>
  </office:body>
-------------Fin de l'extrait--------------------------

Donc il n'y a pas de possibilité de recherche directe.
Peut-être avec une macro qui recherche des attributs de style ?

À suivre.....

bonne journée
Patrick



Le 20/03/2024 à 09:27, Dominique a écrit :
Bonjour,

Je viens de tester. Il faut aller chercher le code Unicode du saut de ligne pour le traiter dans Ctrl h de LIBO :

Soit un texte avec des sauts de ligne, on passe dans la case « Rechercher » Ctrl+maj+u, on lâche les touches, on fait suivre le u de 000a puis une espace. Tout s'efface dans le cartouche « Rechercher ». On place ce qu'on veut dans « Remplacer », voire rien pour les supprimer. Et hop, plus de sauts de lignes !


--
Envoyez un mail à users+unsubscribe@fr.libreoffice.org pour vous désinscrire
Les archives de la liste sont disponibles à https://listarchives.libreoffice.org/fr/users/
Privacy Policy: https://www.documentfoundation.org/privacy

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.