Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8078725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:53:13+00:00 2026-06-05T15:53:13+00:00

The documentation of my project (using Python 3.2) is created with Sphinx (1.1.3) and

  • 0

The documentation of my project (using Python 3.2) is created with Sphinx (1.1.3) and is made of HTML files. I have to write this documentation in English and in French; that’s the reason why I build my documentation with Sphinx and gettext, using the usual bunch of .po(t) and .mo files.

By example, my .po files are made of lines like this one :

msgid "original text"
msgstr "translation"

My problem lies in the fact that if some translations are made of several lines, the corresponding HTML file loses the “new line” characters : my different lines are packed into one big paragraph. I tried different things, like :

msgid "original text"
msgstr "translation : first line \n second line"

But of course the HTML doesn’t care about the \n character; same problem with the \r character.

Then I tried this :

msgid "original text"
msgstr "translation : first line <br> second line"

But all I get is something like &lt;br&gt; instead of the expected “line break”. Same thing with <br/>.

What can I do ? I would be nice to help me !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T15:53:14+00:00Added an answer on June 5, 2026 at 3:53 pm

    Well, thank’s to ms4py, I’m able to answer my own question :

    • add the following line in each .rst file if you use “new line” characters in this file :

      .. |br| raw:: html

    Then add an empty line, then add on a new line the following characters : “less than” and br />. Then a new empty line.

    • use the following characters in each translations in order to have a break line : |br| with spaces before and after |br|.

    Thank you !

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Hudson to generate the documentation for a Python project using Sphinx. This
I'm using nose 1.1.2 to write tests for a Python project. There is this
I am currently using Sphinx to document a mixed-language project, such that the documentation
I have a project in Python 2.6 and I'd like to write a utf-8
I am using Sphinx to generate the documentation for a project of mine. In
Can i create 64-bit setup.exe file using InstallScript project in InstallShield 2009? Documentation is
i cannot find any documentation of this project
From this page: http://www.doctrine-project.org/documentation/manual/1_2/en/working-with-models#dealing-with-relations:creating-related-records You can see that it says $obj['property']; is the recommended
I got a Project from my Company without Documentation. Now I have to add
I have been pouring through documentation as part of my quarter long project to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.