{"id":312,"date":"2021-08-06T16:48:06","date_gmt":"2021-08-06T16:48:06","guid":{"rendered":"https:\/\/integrations.pressbooks.network\/steel\/?post_type=chapter&#038;p=312"},"modified":"2025-02-13T16:58:10","modified_gmt":"2025-02-13T16:58:10","slug":"avoiding-line-breaks","status":"web-only","type":"chapter","link":"https:\/\/integrations.pressbooks.network\/steel\/chapter\/avoiding-line-breaks\/","title":{"raw":"Avoiding line breaks","rendered":"Avoiding line breaks"},"content":{"raw":"<p style=\"text-align: left;\">Sometimes you want to make sure that phrases don't break across lines. Here's some legal notation that should never break lines [no special treatment]: \u00a7 1234567. Unfortunately, this one will break because it's not treated.<\/p>\r\n<p style=\"text-align: left;\">Sometimes you want to make sure that phrases don't break across lines. Here's some legal notation that should never break lines [using &amp;nbsp;]: \u00a7\u00a01234567. This notation will never break in unexpected places because the expression uses the html character for non-breaking space, so the browser treats it as a single word.<\/p>\r\n<p style=\"text-align: left;\">Sometimes you want to make sure that phrases don't break across lines. Here's some legal notation that should never break lines [using CSS]: <span class=\"keep-all\">\u00a7 1234567<\/span>. This notation will never break in unexpected places because we've wrapped it in a span and used CSS to keep it from breaking where we don't want it to.<\/p>","rendered":"<p style=\"text-align: left;\">Sometimes you want to make sure that phrases don&#8217;t break across lines. Here&#8217;s some legal notation that should never break lines [no special treatment]: \u00a7 1234567. Unfortunately, this one will break because it&#8217;s not treated.<\/p>\n<p style=\"text-align: left;\">Sometimes you want to make sure that phrases don&#8217;t break across lines. Here&#8217;s some legal notation that should never break lines [using &amp;nbsp;]: \u00a7\u00a01234567. This notation will never break in unexpected places because the expression uses the html character for non-breaking space, so the browser treats it as a single word.<\/p>\n<p style=\"text-align: left;\">Sometimes you want to make sure that phrases don&#8217;t break across lines. Here&#8217;s some legal notation that should never break lines [using CSS]: <span class=\"keep-all\">\u00a7 1234567<\/span>. This notation will never break in unexpected places because we&#8217;ve wrapped it in a span and used CSS to keep it from breaking where we don&#8217;t want it to.<\/p>\n\n\t\t\t <section class=\"citations-section\" role=\"contentinfo\">\n\t\t\t <h3>Candela Citations<\/h3>\n\t\t\t\t\t <div>\n\t\t\t\t\t\t <div id=\"citation-list-312\">\n\t\t\t\t\t\t\t <div class=\"licensing\"><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Original<\/div><ul class=\"citation-list\"><li>Fake citation. <strong>Authored by<\/strong>: Steel Wagstaff. <strong>Provided by<\/strong>: Pressbooks. <strong>Retrieved from<\/strong>: https:\/\/pressbooks.org. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/about\/pdm\">Public Domain: No Known Copyright<\/a><\/em><\/li><\/ul><\/div>\n\t\t\t\t\t\t <\/div>\n\t\t\t\t\t <\/div>\n\t\t\t <\/section>","protected":false},"author":14,"menu_order":28,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":"","_candela_citation":"[{\"type\":\"original\",\"description\":\"Fake citation\",\"author\":\"Steel Wagstaff\",\"organization\":\"Pressbooks\",\"url\":\"https:\/\/pressbooks.org\",\"project\":\"\",\"license\":\"pd\",\"license_terms\":\"\"}]"},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-312","chapter","type-chapter","status-web-only","hentry"],"part":3,"_links":{"self":[{"href":"https:\/\/integrations.pressbooks.network\/steel\/wp-json\/pressbooks\/v2\/chapters\/312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/integrations.pressbooks.network\/steel\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/integrations.pressbooks.network\/steel\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/integrations.pressbooks.network\/steel\/wp-json\/wp\/v2\/users\/14"}],"version-history":[{"count":8,"href":"https:\/\/integrations.pressbooks.network\/steel\/wp-json\/pressbooks\/v2\/chapters\/312\/revisions"}],"predecessor-version":[{"id":322,"href":"https:\/\/integrations.pressbooks.network\/steel\/wp-json\/pressbooks\/v2\/chapters\/312\/revisions\/322"}],"part":[{"href":"https:\/\/integrations.pressbooks.network\/steel\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/integrations.pressbooks.network\/steel\/wp-json\/pressbooks\/v2\/chapters\/312\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/integrations.pressbooks.network\/steel\/wp-json\/wp\/v2\/media?parent=312"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/integrations.pressbooks.network\/steel\/wp-json\/pressbooks\/v2\/chapter-type?post=312"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/integrations.pressbooks.network\/steel\/wp-json\/wp\/v2\/contributor?post=312"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/integrations.pressbooks.network\/steel\/wp-json\/wp\/v2\/license?post=312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}