Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

including carriage return with XML table data

Explorer ,
Nov 16, 2015 Nov 16, 2015

I'm inserting some data using XML into a table in an InDesign frame.
As part of the text, I'd like to put some carriage returns so that the text has a line break where I'd like it rather than have InDesign do its best guess as to how to split up the lines.

I've tried putting &#8629; and <br/>in the text, but that didn't do what I hoped it might.

Any suggestions?

Thanks!

TOPICS
Scripting
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , Nov 17, 2015 Nov 17, 2015

Hello Urban, try this:

&#x0d;

Roland

Translate
Contributor ,
Nov 16, 2015 Nov 16, 2015

I use:

"\u000D" - Carriage return

"\u000A" - Line feed

Brett

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 17, 2015 Nov 17, 2015

Thanks for the suggestion.

I put it in, but the InDesign table after I imported the XML just came back with those codes as text.

Here's my tag pair:

<TableTitleText aid:table="cell" aid:ccolwidth= "477">Would you say \u000D\u000Ayou get this moderate physical activity at work or outside work?</TableTitleText>

Is there some other way I need to enter that (or some other) code?

Thanks again.

Urban

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 17, 2015 Nov 17, 2015

Hello Urban, try this:

&#x0d;

Roland

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 17, 2015 Nov 17, 2015

Roland: Thank you SO MUCH.  It works just like how I want it to.

I never saw that code documented anywhere.  How do you figure that out?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 17, 2015 Nov 17, 2015
LATEST

urbanl28974291 wrote:

Roland: Thank you SO MUCH.  It works just like how I want it to.

I never saw that code documented anywhere.  How do you figure that out?

That's standard XML encoding. You can also use &#13; I'm not sure about &#10; or &#xa;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 17, 2015 Nov 17, 2015

That's weird, I haven't had an issue with this myself... lucky Roland came to the rescue!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines