Thanks. I understand now.
What I should have said was that -log2html-
has the aim of a straight translation from SMCL to HTML,
among other things rendering continuation lines faithfully.
Nowhere, I believe, does it claim that it will recombine
what Stata split into multiple lines, i.e. reverse the
formation of continuation lines.
You need a text editor (for one-off changes) or a
post-processor (for routine work) to do this.
Nick
[email protected]
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Friedrich
> Huebler
> Sent: 02 October 2003 15:02
> To: [email protected]
> Subject: st: Re: Length of lines with -translate- and -log2html-
>
>
> --- Nick Cox <[email protected]> wrote:
> > As far as -log2html- is concerned, I am not clear what
> > the problem is here without an example. -log2html- includes
> > logic to cope with continuation lines. It may well fail to catch
> > all problems, but we need to see an example to work on it.
>
> Here is an example that shows the line breaks created by -translate-
> and -log2html-.
>
> #delimit ;
> sysuse auto;
> set linesize 120;
> log using linetest.smcl;
> tabstat price mpg rep78 headroom trunk weight length turn
> displacement gear_ratio foreign;
> log close;
> translate linetest.smcl linetest.log, translator(smcl2log);
> log2html linetest.smcl;
>
> In the Stata Results window and in linetest.smcl the
> -tabstat- output
> appears as one table that is 120 characters wide. In
> linetest.log and
> linetest.html the lines are broken after 79 characters. The break
> appears at the variable "length". "lengt" appears one one line, "h"
> on the next. The mean value of length (187.9324) is also broken,
> 187.932 appears on one line, 4 on the next.
>
> Friedrich Huebler
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> *
> * For searches and help try:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/