Hi,
I was wondering why the length of the line is not sufficient when the textindent option is used and how to fix it.
The same issue also occurs in ods rtf.
ods pdf file="&demo./reporting/test.pdf";
proc odstext;
list;
item 'First example';
item 'Second example';
item 'Third example';
end;
run;
proc odstext;
list / style={textindent=10} ;
item 'First example';
item 'Second example';
item 'Third example';
end;
run;
ods pdf close;
Best Regards,
Véronique
I don't know what is happening here. Result window does not wrap for me. The pdf file does have the wrapped items as you mention.
If I use a dummy item without spaces (see code below) the wrapping does not happen.
ods pdf file="&demo./reporting/test.pdf";
proc odstext;
list;
item 'First example';
item 'Second example';
item 'Third example';
end;
run;
proc odstext;
list / style={textindent=25} ;
/* long dummy item */
item '_____________________________________________________';
item 'First example';
item 'Second example';
item 'Third example';
end;
run;
ods pdf close;
Maybe this helps in the investigation.
Regards, Jos
There are three workarounds which work in my PDF but It's far from great as the same output cannot be expected in other destinations like the HTML destination.
- use marginleft= (usually used to define the global option style attribute) instead of textindent=
- use textindent= + asis=on
- use textindent= + width=
By the way, if someone know how to indent both bullet points and related text (not just the text) in a clean way, feel free to share the syntax.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.