ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

space in template returns <br> in public page

March 30, 2011 9:15pm

Subscribe [3]
  • #1 / Mar 30, 2011 9:15pm

    I’m very confused because I think my question is not intelligent :
    when I write “ ” or if I put a blank space in template between two consecutive custom fields, in the public page I get this two fields separated by a carriage return i.e. on different lines… and don’t want it.

    How to get two custom fields on the same line if they are written on the same line and just separated by a space ?

    thank you in advance.

  • #2 / Mar 31, 2011 6:52am

    Mark Bowen

    12637 posts

    Hiya,

    That is extremely weird and definitely shouldn’t be happening.

    What are the fields that you are outputting? Are they standard ExpressionEngine fields or fields used by a 3rd party add-on or what exactly?

    Have you tried outputting them one at a time and seeing if you get the br output by just one of them. If so then that might help narrow this down a bit. Just wondering if this is some 3rd party field that’s causing this though and not a larger problem. One way of testing that would be create two bog standard ExpressionEngine text fields with formatting set to None and output those and see if the problem still exists.

    Best wishes,

    Mark

    P.S. I just thought of something whilst I was writing “formatting set to None” in my post above. Your fields don’t perhaps have their formatting set to Auto
    do they and you have some content in them and a return has been put into the field contents perhaps?

  • #3 / Mar 31, 2011 7:32am

    in template, I have :

    <div id=“texte_depeche” [removed]>   
      {exp:channel:entries channel="depeches" orderby="date" sort="desc" limit="1"}         
            <font size=“3px”> {depeches_agence} ({depeches_origine} - {depeches_date_agence format="%D %d %F %Y - %H:%s"}) </font>

              {title}

          {if depeches_LE}
            <div id=“commentaire_general” [removed]>
                        <div id=“titre_commentaire”[removed] >
                            Commentaire de Liberté d’Expression
                        </div id=“titre_commentaire”>

                      <div id=“texte_commentaire” [removed]justify”>
                            {depeches_commentaire_LE}
                      </div id=“texte_commentaire”>

            </div id=“commentaire_general”>
          {/if}

            {depeches_contenu}
                 


          {/exp:channel:entries}

    </div id=“texte_depeche”>

    in public space I have :


    Xinhua (

    Beijing
    - Wed 30 March 2011 - 01:08)
    L’utilisation de la force n’est pas la solution appropriée pour résoudre les problèmes en Libye

    BEIJING, 30 mars (Xinhua)—L’histoire a, à plusieurs reprises, prouvé que l’utilisation de la force n’était pas la solution appropriée pour résoudre les problèmes, et qu’elle les rendait même plus compliqués, a déclaré mercredi à Beijing le président chinois Hu Jintao au sujet de la question libyenne.

    “Le dialogue et d’autres moyens pacifiques sont les solutions les plus adéquates pour résoudre les problèmes”, a souligné M. Hu lors d’une rencontre avec son homologue français Nicolas Sarkozy.

    M. Sarkozy est arrivé mercredi après-midi à Beijing pour participer à un séminaire sur le système monétaire international qui se tiendra le 31 mars à Nanjing, la capitale de la province orientale du Jiangsu.

  • #4 / Mar 31, 2011 8:26am

    Sue Crocker

    26054 posts

    Hi, Abdellah Ouahhabi.

    Is {depeches_agence} set to be a text field with the field formatting set to None? Can you tell us which version/build of EE2.x you’re using? See EEWiki:// HowTo Determine My EE Version

    There is a minor bug in 2.1.3 where any text field that is set to None isn’t having the value of none written to the table correctly.

    It’s easy enough to fix, but let’s make sure that’s the problem here.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases