Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. [gelöst] Zeilenumbruch in Text

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [gelöst] Zeilenumbruch in Text

    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      HKF8770 last edited by

      Hallo,

      möchte mir für meine Startseite einen Text von verschiedenen Werten zusammensetzten, was soweit auch klappt.

      Ich habe jedoch derzeit das Problem dass ich keinen Zeilenumbruch hin bekomme.

      Ich dachte immer "\n" ist der Zeilenumbruch aber da tut sich nichts.

      Hat jemand ne Idee???

      string = " Temperatur Ostseite:  "  + tempOstseite + " °C" + "\n" + " Zeile 2 " + "\n" + " Ende Test " + "\n";
      
      1 Reply Last reply Reply Quote 0
      • Jey Cee
        Jey Cee Developer last edited by

        War auch mein erste Gedanke gerade. Such mal bei google nach Chr10 oder Chr13.

        Gesendet von meinem Jolla mit Tapatalk

        1 Reply Last reply Reply Quote 0
        • V
          versteckt last edited by

          Als was stellst du es dar? Ev.

          wenn es als HTML interpretiert wird.

          Gesendet von meinem iPhone mit Tapatalk

          1 Reply Last reply Reply Quote 0
          • H
            HKF8770 last edited by

            Meinst du den Widget?

            Als val string (unescaped)…habe ich bei ICAL auch und da geht es ja.

            Ist aber richtig dass Ical hier html als Format hat.

            Muss ich dann auch meinen Text als html darstellen? Wie geht dass 😞

            1 Reply Last reply Reply Quote 0
            • P
              pix last edited by

              @HKF8770:

              Muss ich dann auch meinen Text als html darstellen? Wie geht dass `
              Beispiel aus meiner Terminübersicht (inkl. Feiertage):

              ! [{"tpl":"tplValueStringRaw","data":{"oid":"ical.0.data.html","visibility-cond":"!=","visibility-val":1,"name":"iCal Kalenderdaten","html_prepend":" ! Termine: ! ","html_append":" ! Nächster Feiertag: {javascript.0.Feiertag.naechster_Datum} {javascript.0.Feiertag.naechster_Name}","visibility-oid":""},"style":{"left":"10px","top":"510px","width":"248px","height":"218px","font-size":"13px","z-index":"20","background":"","background-color":"rgba(0,0,100,0.0)","background-repeat":"","padding":"","border-width":"","border-style":"none","border-radius":"0px","padding-left":"10px","padding-top":"5px","padding-right":"5px","padding-bottom":"10px","border-color":"rgba(0,0,200,0.5);","font-family":"RobotoCondensed-Regular, Futura"},"widgetSet":"basic"}] !

              Gruß,

              Pix

              1 Reply Last reply Reply Quote 0
              • H
                HKF8770 last edited by

                Danke Pix…..

                Gesendet von meinem Lenovo TAB 2 A10-70L mit Tapatalk

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                Support us

                ioBroker
                Community Adapters
                Donate

                930
                Online

                31.7k
                Users

                79.7k
                Topics

                1.3m
                Posts

                4
                6
                3436
                Loading More Posts
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes
                Reply
                • Reply as topic
                Log in to reply
                Community
                Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                The ioBroker Community 2014-2023
                logo