Re: [fossil-users] Git import newlines in comments

2013-05-27 Thread Stephan Beal
On Mon, May 27, 2013 at 6:51 PM, Richard Hipp  wrote:

> On Mon, May 27, 2013 at 12:47 PM,  wrote:
>
>> Thanks but I see no changes to my Timeline comments?
>>
>>
> Your browser might have the old CSS cached.  Try pressing Reload.
>

Also try adding !important to the css:

white-space: pre !important;

-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Git import newlines in comments

2013-05-27 Thread sky5walk
SuperAwesome! Thanks Isaac and for this topic.
It's like someone cleaned my windshield :))
Wow, another one of my fossil thorns removed so easily.

Thanks for fossil!

On Mon, May 27, 2013 at 2:35 PM, Isaac Jurado  wrote:

> Replying sky5w...@gmail.com:
> >
> > I am using fossil v1.25[80bf94e0f7] if that might explain further.
>
> Yes, that explains it.  The use of  was
> added here:
>
>
> http://fossil-scm.org/index.html/info/f9d4e0853b6650294117fd08683aa8358983f974
>
> Which is two months after the version you're running.  In your version,
> I guess you could try with the ".timelineTableCell" class, although that
> will change more than you expect.
>
> Regards.
>
> --
> Isaac Jurado
>
> "The noblest pleasure is the joy of understanding."
>   Leonardo da Vinci
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Git import newlines in comments

2013-05-27 Thread Isaac Jurado
Replying sky5w...@gmail.com:
>
> I am using fossil v1.25[80bf94e0f7] if that might explain further.

Yes, that explains it.  The use of  was
added here:

http://fossil-scm.org/index.html/info/f9d4e0853b6650294117fd08683aa8358983f974

Which is two months after the version you're running.  In your version,
I guess you could try with the ".timelineTableCell" class, although that
will change more than you expect.

Regards.

-- 
Isaac Jurado

"The noblest pleasure is the joy of understanding."
  Leonardo da Vinci
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Git import newlines in comments

2013-05-27 Thread sky5walk
Ok, I get same results with Chrome or IE.
Even though the edit pane displays [LF]'s, the html source did not show any
within the text section?
I'll monitor this thread to see if any CSS gurus can explain?
Thanks for trying.


On Mon, May 27, 2013 at 1:23 PM, Richard Hipp  wrote:

>
>
> On Mon, May 27, 2013 at 1:20 PM,  wrote:
>
>> I am using fossil v1.25[80bf94e0f7] if that might explain further.
>>
>>
> Probably not because none of this has changed in ages.
>
> Press Ctrl-U on the timeline page in your browser (Firefox and Chrome -
> dunno about others) and see what HTML is coming across.  You can probably
> also click on the CSS to see what it looks like.
>
>
>
> --
> D. Richard Hipp
> d...@sqlite.org
>
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Git import newlines in comments

2013-05-27 Thread Richard Hipp
On Mon, May 27, 2013 at 1:20 PM,  wrote:

> I am using fossil v1.25[80bf94e0f7] if that might explain further.
>
>
Probably not because none of this has changed in ages.

Press Ctrl-U on the timeline page in your browser (Firefox and Chrome -
dunno about others) and see what HTML is coming across.  You can probably
also click on the CSS to see what it looks like.


-- 
D. Richard Hipp
d...@sqlite.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Git import newlines in comments

2013-05-27 Thread sky5walk
I am using fossil v1.25[80bf94e0f7] if that might explain further.


On Mon, May 27, 2013 at 1:18 PM,  wrote:

> Ahh! Very cool.
> The manifest shows my [CRLF]'s were compressed to [LF]'s = /n, but no
> matter. The edit window shows the line feeds properly.
> Wish I could get that to cascade to my Timeline view?
>
>
> On Mon, May 27, 2013 at 1:08 PM, Richard Hipp  wrote:
>
>>
>>
>> On Mon, May 27, 2013 at 1:04 PM,  wrote:
>>
>>> Just to be explicit, my comments are loaded without markups but do
>>> contain [CRLF]'s.
>>> I am unsure of the presence of my original [CRLF]'s within the timeline
>>> data?
>>>
>>
>> On the web interface, go to the screen that shows a check-in that
>> contains CRLFs in the comment.  Then click on the "manifest" link.
>> (example: http://www.fossil-scm.org/fossil/artifact/71a916ee9507d6fb).
>> The comment follows the "C" probably on the first line.  \s means space.
>> \n means newline.  Etc.   Check to see if your comments contain \r\n.
>>
>> Or you can click on the "Edit" link, and the decoded comment will
>> prepopulate the comment editing field.  Does it contain your CRNLs?
>>
>>
>>
>>>
>>> I also tried 'span.timeline...' with no effect.
>>> Should this work on previously loaded comments or only newly added ones?
>>> This would be a simple yet powerful fix for me.
>>>
>>>
>>> On Mon, May 27, 2013 at 12:58 PM, Richard Hipp  wrote:
>>>


 On Mon, May 27, 2013 at 12:57 PM,  wrote:

> Yes, I tried that.
> Should there be a prefix to the .timelineComment?
>

 I did:  "span.timelineComment ..".  Maybe that makes a difference.  I'm
 not very knowledgeable about CSS.


> .timelineComment {
>   font-family: monospace;
>white-space: pre;
> }
> I noticed 'white-space: pre;' is used in other places in the CSS.
>
>
> On Mon, May 27, 2013 at 12:51 PM, Richard Hipp  wrote:
>
>>
>>
>> On Mon, May 27, 2013 at 12:47 PM,  wrote:
>>
>>> Thanks but I see no changes to my Timeline comments?
>>>
>>>
>>>
>>
>>
>> Your browser might have the old CSS cached.  Try pressing Reload.
>>
>> --
>> D. Richard Hipp
>> d...@sqlite.org
>>
>> ___
>> fossil-users mailing list
>> fossil-users@lists.fossil-scm.org
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>
>>
>
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>


 --
 D. Richard Hipp
 d...@sqlite.org

 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


>>>
>>> ___
>>> fossil-users mailing list
>>> fossil-users@lists.fossil-scm.org
>>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>>
>>>
>>
>>
>> --
>> D. Richard Hipp
>> d...@sqlite.org
>>
>> ___
>> fossil-users mailing list
>> fossil-users@lists.fossil-scm.org
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>
>>
>
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Git import newlines in comments

2013-05-27 Thread sky5walk
Ahh! Very cool.
The manifest shows my [CRLF]'s were compressed to [LF]'s = /n, but no
matter. The edit window shows the line feeds properly.
Wish I could get that to cascade to my Timeline view?


On Mon, May 27, 2013 at 1:08 PM, Richard Hipp  wrote:

>
>
> On Mon, May 27, 2013 at 1:04 PM,  wrote:
>
>> Just to be explicit, my comments are loaded without markups but do
>> contain [CRLF]'s.
>> I am unsure of the presence of my original [CRLF]'s within the timeline
>> data?
>>
>
> On the web interface, go to the screen that shows a check-in that contains
> CRLFs in the comment.  Then click on the "manifest" link.  (example:
> http://www.fossil-scm.org/fossil/artifact/71a916ee9507d6fb).  The comment
> follows the "C" probably on the first line.  \s means space.  \n means
> newline.  Etc.   Check to see if your comments contain \r\n.
>
> Or you can click on the "Edit" link, and the decoded comment will
> prepopulate the comment editing field.  Does it contain your CRNLs?
>
>
>
>>
>> I also tried 'span.timeline...' with no effect.
>> Should this work on previously loaded comments or only newly added ones?
>> This would be a simple yet powerful fix for me.
>>
>>
>> On Mon, May 27, 2013 at 12:58 PM, Richard Hipp  wrote:
>>
>>>
>>>
>>> On Mon, May 27, 2013 at 12:57 PM,  wrote:
>>>
 Yes, I tried that.
 Should there be a prefix to the .timelineComment?

>>>
>>> I did:  "span.timelineComment ..".  Maybe that makes a difference.  I'm
>>> not very knowledgeable about CSS.
>>>
>>>
 .timelineComment {
   font-family: monospace;
white-space: pre;
 }
 I noticed 'white-space: pre;' is used in other places in the CSS.


 On Mon, May 27, 2013 at 12:51 PM, Richard Hipp  wrote:

>
>
> On Mon, May 27, 2013 at 12:47 PM,  wrote:
>
>> Thanks but I see no changes to my Timeline comments?
>>
>>
>>
>
>
> Your browser might have the old CSS cached.  Try pressing Reload.
>
> --
> D. Richard Hipp
> d...@sqlite.org
>
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>

 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


>>>
>>>
>>> --
>>> D. Richard Hipp
>>> d...@sqlite.org
>>>
>>> ___
>>> fossil-users mailing list
>>> fossil-users@lists.fossil-scm.org
>>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>>
>>>
>>
>> ___
>> fossil-users mailing list
>> fossil-users@lists.fossil-scm.org
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>
>>
>
>
> --
> D. Richard Hipp
> d...@sqlite.org
>
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Git import newlines in comments

2013-05-27 Thread Richard Hipp
On Mon, May 27, 2013 at 1:04 PM,  wrote:

> Just to be explicit, my comments are loaded without markups but do
> contain [CRLF]'s.
> I am unsure of the presence of my original [CRLF]'s within the timeline
> data?
>

On the web interface, go to the screen that shows a check-in that contains
CRLFs in the comment.  Then click on the "manifest" link.  (example:
http://www.fossil-scm.org/fossil/artifact/71a916ee9507d6fb).  The comment
follows the "C" probably on the first line.  \s means space.  \n means
newline.  Etc.   Check to see if your comments contain \r\n.

Or you can click on the "Edit" link, and the decoded comment will
prepopulate the comment editing field.  Does it contain your CRNLs?



>
> I also tried 'span.timeline...' with no effect.
> Should this work on previously loaded comments or only newly added ones?
> This would be a simple yet powerful fix for me.
>
>
> On Mon, May 27, 2013 at 12:58 PM, Richard Hipp  wrote:
>
>>
>>
>> On Mon, May 27, 2013 at 12:57 PM,  wrote:
>>
>>> Yes, I tried that.
>>> Should there be a prefix to the .timelineComment?
>>>
>>
>> I did:  "span.timelineComment ..".  Maybe that makes a difference.  I'm
>> not very knowledgeable about CSS.
>>
>>
>>> .timelineComment {
>>>   font-family: monospace;
>>>white-space: pre;
>>> }
>>> I noticed 'white-space: pre;' is used in other places in the CSS.
>>>
>>>
>>> On Mon, May 27, 2013 at 12:51 PM, Richard Hipp  wrote:
>>>


 On Mon, May 27, 2013 at 12:47 PM,  wrote:

> Thanks but I see no changes to my Timeline comments?
>
>
>


 Your browser might have the old CSS cached.  Try pressing Reload.

 --
 D. Richard Hipp
 d...@sqlite.org

 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


>>>
>>> ___
>>> fossil-users mailing list
>>> fossil-users@lists.fossil-scm.org
>>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>>
>>>
>>
>>
>> --
>> D. Richard Hipp
>> d...@sqlite.org
>>
>> ___
>> fossil-users mailing list
>> fossil-users@lists.fossil-scm.org
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>
>>
>
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>


-- 
D. Richard Hipp
d...@sqlite.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Git import newlines in comments

2013-05-27 Thread sky5walk
Just to be explicit, my comments are loaded without markups but do
contain [CRLF]'s.
I am unsure of the presence of my original [CRLF]'s within the timeline
data?

I also tried 'span.timeline...' with no effect.
Should this work on previously loaded comments or only newly added ones?
This would be a simple yet powerful fix for me.


On Mon, May 27, 2013 at 12:58 PM, Richard Hipp  wrote:

>
>
> On Mon, May 27, 2013 at 12:57 PM,  wrote:
>
>> Yes, I tried that.
>> Should there be a prefix to the .timelineComment?
>>
>
> I did:  "span.timelineComment ..".  Maybe that makes a difference.  I'm
> not very knowledgeable about CSS.
>
>
>> .timelineComment {
>>   font-family: monospace;
>>   white-space: pre;
>> }
>> I noticed 'white-space: pre;' is used in other places in the CSS.
>>
>>
>> On Mon, May 27, 2013 at 12:51 PM, Richard Hipp  wrote:
>>
>>>
>>>
>>> On Mon, May 27, 2013 at 12:47 PM,  wrote:
>>>
 Thanks but I see no changes to my Timeline comments?



>>>
>>>
>>> Your browser might have the old CSS cached.  Try pressing Reload.
>>>
>>> --
>>> D. Richard Hipp
>>> d...@sqlite.org
>>>
>>> ___
>>> fossil-users mailing list
>>> fossil-users@lists.fossil-scm.org
>>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>>
>>>
>>
>> ___
>> fossil-users mailing list
>> fossil-users@lists.fossil-scm.org
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>
>>
>
>
> --
> D. Richard Hipp
> d...@sqlite.org
>
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Git import newlines in comments

2013-05-27 Thread Richard Hipp
On Mon, May 27, 2013 at 12:57 PM,  wrote:

> Yes, I tried that.
> Should there be a prefix to the .timelineComment?
>

I did:  "span.timelineComment ..".  Maybe that makes a difference.  I'm not
very knowledgeable about CSS.


> .timelineComment {
>   font-family: monospace;
>   white-space: pre;
> }
> I noticed 'white-space: pre;' is used in other places in the CSS.
>
>
> On Mon, May 27, 2013 at 12:51 PM, Richard Hipp  wrote:
>
>>
>>
>> On Mon, May 27, 2013 at 12:47 PM,  wrote:
>>
>>> Thanks but I see no changes to my Timeline comments?
>>>
>>>
>>>
>>
>>
>> Your browser might have the old CSS cached.  Try pressing Reload.
>>
>> --
>> D. Richard Hipp
>> d...@sqlite.org
>>
>> ___
>> fossil-users mailing list
>> fossil-users@lists.fossil-scm.org
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>
>>
>
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>


-- 
D. Richard Hipp
d...@sqlite.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Git import newlines in comments

2013-05-27 Thread sky5walk
Yes, I tried that.
Should there be a prefix to the .timelineComment?
.timelineComment {
  font-family: monospace;
  white-space: pre;
}
I noticed 'white-space: pre;' is used in other places in the CSS.


On Mon, May 27, 2013 at 12:51 PM, Richard Hipp  wrote:

>
>
> On Mon, May 27, 2013 at 12:47 PM,  wrote:
>
>> Thanks but I see no changes to my Timeline comments?
>>
>>
>>
>
>
> Your browser might have the old CSS cached.  Try pressing Reload.
>
> --
> D. Richard Hipp
> d...@sqlite.org
>
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Git import newlines in comments

2013-05-27 Thread Richard Hipp
On Mon, May 27, 2013 at 12:47 PM,  wrote:

> Thanks but I see no changes to my Timeline comments?
>
>
>


Your browser might have the old CSS cached.  Try pressing Reload.

-- 
D. Richard Hipp
d...@sqlite.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Git import newlines in comments

2013-05-27 Thread sky5walk
Thanks but I see no changes to my Timeline comments?


On Mon, May 27, 2013 at 12:40 PM, Isaac Jurado  wrote:

> On Mon, May 27, 2013 at 6:36 PM,   wrote:
> >
> > "On the web interface, all of the commit message are displayed inside of
> >   So you can perhaps adjust the
> > look of comments to your liking by editing the CSS and without having to
> > touch code."
> >
> > This has been a long time nuisance for me.  Can someone provide a CSS
> > example enabling my [CR+LF]'s within the TimeLine comments?
> > I prefer this over modifying the code.
>
> You mean, forcing an element to render as preformatted?
>
> .timelineComment {
> font-family: monospace;
> white-space: pre;
> }
>
> Reference:
>
> http://stackoverflow.com/a/9753612/1100958
>
> Regards.
>
> --
> Isaac Jurado
>
> "The noblest pleasure is the joy of understanding"
> Leonardo da Vinci
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Git import newlines in comments

2013-05-27 Thread Isaac Jurado
On Mon, May 27, 2013 at 6:36 PM,   wrote:
>
> "On the web interface, all of the commit message are displayed inside of
>   So you can perhaps adjust the
> look of comments to your liking by editing the CSS and without having to
> touch code."
>
> This has been a long time nuisance for me.  Can someone provide a CSS
> example enabling my [CR+LF]'s within the TimeLine comments?
> I prefer this over modifying the code.

You mean, forcing an element to render as preformatted?

.timelineComment {
font-family: monospace;
white-space: pre;
}

Reference:

http://stackoverflow.com/a/9753612/1100958

Regards.

-- 
Isaac Jurado

"The noblest pleasure is the joy of understanding"
Leonardo da Vinci
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Git import newlines in comments

2013-05-27 Thread sky5walk
"On the web interface, all of the commit message are displayed inside of
  So you can perhaps adjust the
look of comments to your liking by editing the CSS and without having to
touch code."

This has been a long time nuisance for me.
Can someone provide a CSS example enabling my [CR+LF]'s within the TimeLine
comments?
I prefer this over modifying the code.

Thanks for fossil.


On Mon, May 27, 2013 at 11:44 AM, Richard Hipp  wrote:

>
>
> On Mon, May 27, 2013 at 11:37 AM, Isaac Jurado  wrote:
>
>>
>> P.S: Apparently, the command line timeline also joins all the message
>> into a single line.  I still have to look through the code to see if
>> it's done at commit/import time or just at rendering.
>>
>>
> Fossil preserves the commit message text exactly as it is input.  All
> changes (new-line folding or whatever else) is done at rendering.  So you
> can add new options (if you are motivated) to make it honor newlines in
> commit messages, if that is what you want it to do.
>
> On the web interface, all of the commit message are displayed inside of
>   So you can perhaps adjust the
> look of comments to your liking by editing the CSS and without having to
> touch code.
>
> For the command-line timeline, the commit messages are formatted using
> code in the source file "comformat.c".  You'll have to change code if you
> want to change the command-line timeline formatting.  See
> http://www.fossil-scm.org/fossil/artifact/4c6ab377?ln for the latest
> code.  It is not complicated.
>
> --
> D. Richard Hipp
> d...@sqlite.org
>
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Git import newlines in comments

2013-05-27 Thread Richard Hipp
On Mon, May 27, 2013 at 11:44 AM, Stephan Beal wrote:

> On Mon, May 27, 2013 at 5:37 PM, Isaac Jurado  wrote:
>
>> P.S: Apparently, the command line timeline also joins all the message
>> into a single line.  I still have to look through the code to see if
>> it's done at commit/import time or just at rendering.
>>
>
> It's done in src/comformat.c:comment_print(). It appears to collapse
> whitespace just like a browser does, basically. i think i might have
> accidentally found a bug, though:
>
> if( doIndent ){
>   fossil_print("%*s", indent, "");
> }
>
> should that "%*s" be "%.*s"? i've never seen "%*s" before. (Anyone who
> knows what i'm talking about there, feel free to answer!)
>

The "fossil_print("%*s", indent, "")" statement prints out indent
characters of white space.


>
> --
> - stephan beal
> http://wanderinghorse.net/home/stephan/
> http://gplus.to/sgbeal
>
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>


-- 
D. Richard Hipp
d...@sqlite.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Git import newlines in comments

2013-05-27 Thread Stephan Beal
On Mon, May 27, 2013 at 5:37 PM, Isaac Jurado  wrote:

> P.S: Apparently, the command line timeline also joins all the message
> into a single line.  I still have to look through the code to see if
> it's done at commit/import time or just at rendering.
>

It's done in src/comformat.c:comment_print(). It appears to collapse
whitespace just like a browser does, basically. i think i might have
accidentally found a bug, though:

if( doIndent ){
  fossil_print("%*s", indent, "");
}

should that "%*s" be "%.*s"? i've never seen "%*s" before. (Anyone who
knows what i'm talking about there, feel free to answer!)

-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Git import newlines in comments

2013-05-27 Thread Richard Hipp
On Mon, May 27, 2013 at 11:37 AM, Isaac Jurado  wrote:

>
> P.S: Apparently, the command line timeline also joins all the message
> into a single line.  I still have to look through the code to see if
> it's done at commit/import time or just at rendering.
>
>
Fossil preserves the commit message text exactly as it is input.  All
changes (new-line folding or whatever else) is done at rendering.  So you
can add new options (if you are motivated) to make it honor newlines in
commit messages, if that is what you want it to do.

On the web interface, all of the commit message are displayed inside of
  So you can perhaps adjust the
look of comments to your liking by editing the CSS and without having to
touch code.

For the command-line timeline, the commit messages are formatted using code
in the source file "comformat.c".  You'll have to change code if you want
to change the command-line timeline formatting.  See
http://www.fossil-scm.org/fossil/artifact/4c6ab377?ln for the latest code.
It is not complicated.
-- 
D. Richard Hipp
d...@sqlite.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Git import newlines in comments

2013-05-27 Thread Isaac Jurado
On Mon, May 27, 2013 at 2:46 AM, Richard Hipp  wrote:
>
> On Sun, May 26, 2013 at 8:39 PM, Richard Collins 
> wrote:
>>
>> I'm looking at switching a git repository to fossil.
>>
>> I've done an export and import and found that fossil is not showing the
>> newlines from the commit messages.
>>
>> e.g. the commit message
>>
>> Fix slow PDF thumbnail generation
>>
>> Squashed commit of the following:
>> commit 350fe7521e79a914a54ff384b6ca02a66d5ba136
>> Author: Richard Collins
>> ...
>> ...
>>
>> Shows up in the fossil web UI as:
>>
>> Fix slow PDF thumbnail generation Squashed commit of the following: commit
>> 350fe7521e79a914a54ff384b6ca02a66d5ba136 Author: Richard Collins ...
>>
>>
>> Which is not that great for long commit messages. I don't know if newlines
>> are dropped in the import, or if the UI does not htmlize the newlines. Is
>> there a way to get fossil to import/display the newlines?
>
>
> Under the Admin/Timeline menu you can select "Plaintext comments on
> timeline", among other options.

The problem is that the commit message is not shown within  tags,
so even if line feeds are preserved, the browser will discard them as
whitespace.

In my case that's not really an issue (for migrated Mercurial
repositories) but I wonder if introducing markup in commit messages is a
recommended practice around here.

Cheers.

P.S: Apparently, the command line timeline also joins all the message
into a single line.  I still have to look through the code to see if
it's done at commit/import time or just at rendering.

-- 
Isaac Jurado

"The noblest pleasure is the joy of understanding"
Leonardo da Vinci
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Git import newlines in comments

2013-05-26 Thread Richard Hipp
On Sun, May 26, 2013 at 8:39 PM, Richard Collins wrote:

> I'm looking at switching a git repository to fossil.
>
> I've done an export and import and found that fossil is not showing the
> newlines from the commit messages.
>
> e.g. the commit message
>
> Fix slow PDF thumbnail generation
>
> Squashed commit of the following:
> commit 350fe7521e79a914a54ff384b6ca02a66d5ba136
> Author: Richard Collins
> ...
> ...
>
> Shows up in the fossil web UI as:
>
> Fix slow PDF thumbnail generation Squashed commit of the following: commit
> 350fe7521e79a914a54ff384b6ca02a66d5ba136 Author: Richard Collins ...
>
>
> Which is not that great for long commit messages. I don't know if newlines
> are dropped in the import, or if the UI does not htmlize the newlines. Is
> there a way to get fossil to import/display the newlines?
>

Under the Admin/Timeline menu you can select "Plaintext comments on
timeline", among other options.


>
> ---
> Richard Collins
>
>
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>


-- 
D. Richard Hipp
d...@sqlite.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users