cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Awooley
Level I

Wrap Text in HTML

Hi Community,

 

The script below creates a journal with wrapped text. However, when I save this as an HTML file, the text is no longer wrapped. How can I maintain formatting from the journal to an HTML file?

 

	win= New Window("Metrics",
		<<journal,
		hlb = H List Box(
			 Spacer Box(size(400,1000)),
			 V List Box( Spacer Box(size(10,10)), cb = H Center Box(), Spacer Box()  ), 		  
			 Spacer Box(size(400,1000))		  	
		 )
	);
	
	cb<<append(tb1=text box("Metrics Generated "||char(format(today(),"m/d/y"))));
	tb1<<set font size(28)<< Justify Text( "Center" )<<set wrap width(1000);

	current Journal()<<save html();
2 REPLIES 2
Craige_Hales
Super User

Re: Wrap Text in HTML

windows, 16.2 appears to break the text in the same locations. I used different font sizes and different pixel lengths for the wrap point for a quick test.

journal behind, browser in frontjournal behind, browser in front

The centering is wrong, but the wrapping seems to work.

You can force line breaks with \!n (an escaped newline in a JSL string).

 

 

 

Craige

Re: Wrap Text in HTML

Using interactive html here will work better than static html.

This can be done by changing the last line in the script to 

current Journal()<<save Interactive html();

Recommended Articles