Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Whitespace inside Tables lost in Textile
Whitespace inside Tables lost in Textile [message #629977] Thu, 30 September 2010 08:00 Go to next message
Nirmal SasidharanFriend
Messages: 120
Registered: July 2009
Location: Germany
Senior Member
Hello,

First of all let me thank you for the wonderful little addon to Mylyn - the WikiText. I had a task of creating a model based Wiki and WikiText greatly simplified this for me with its different readers and writers. Thanks a lot.

Now to a small issue Smile If I have a table as below, TextileLanguage does not retain whitespaces in front inside cells.
|_. name |_. age |_. sex |
| joan | 24 | f |
| archie | 29 | m |
| bella | 45 | f |


would be read as
|_. name |_. age |_. sex |
|joan |24 |f |
|archie |29 |m |
|bella |45 |f |


The header cells however retains the spaces. Is this a wrong behavior?

Regards,
Nirmal

Re: Whitespace inside Tables lost in Textile [message #631485 is a reply to message #629977] Thu, 07 October 2010 16:11 Go to previous messageGo to next message
David Green is currently offline David GreenFriend
Messages: 135
Registered: July 2009
Senior Member
Nirmal,

I'm glad that WikiText is working out for you! Great to hear that it's
now being used to power your wiki.

The WikiText implementation of Textile does indeed drop leading/trailing
whitespace for table cell content. Is this a problem for you? In my
experience browsers tend to ignore whitespace following <td> or <th>
cells anyways.

BTW, you can try out your Textile syntax using the original PHP
(reference) implementation of Textile here:
http://textile.thresholdstate.com/ In general, WikiText tries to
emulate the same behaviour as the PHP implementation wherever possible.

Regards,

David

On 9/30/2010 1:00 AM, Nirmal Sasidharan wrote:
> Hello,
>
> First of all let me thank you for the wonderful little addon to Mylyn -
> the WikiText. I had a task of creating a model based Wiki and WikiText
> greatly simplified this for me with its different readers and writers.
> Thanks a lot.
>
> Now to a small issue :) If I have a table as below, TextileLanguage does
> not retain whitespaces in front inside cells.
>
> |_. name |_. age |_. sex |
> | joan | 24 | f |
> | archie | 29 | m |
> | bella | 45 | f |
>
>
> would be read as
>
> |_. name |_. age |_. sex |
> |joan |24 |f |
> |archie |29 |m |
> |bella |45 |f |
>
>
> The header cells however retains the spaces. Is this a wrong behavior?
>
> Regards,
> Nirmal
>
>
Re: Whitespace inside Tables lost in Textile [message #631612 is a reply to message #631485] Fri, 08 October 2010 08:14 Go to previous messageGo to next message
Nirmal SasidharanFriend
Messages: 120
Registered: July 2009
Location: Germany
Senior Member
Hello David,

This is not a big problem for me but a round trip using the framework I described here http://www.eclipse.org/forums/index.php?t=msg&th=189868& amp;start=0&S=81fb0dab1aab44deb072f72e09c38895#msg_num_3 delivers a diff only w.r.t space inside table cells. I checked with http://textile.thresholdstate.com/ and it seems to preserve spaces.

|_.  name |_.  age |_.  sex |
| joan | 24 | f |
| archie | 29 | m |
| bella | 45 | f |


is delivered by http://textile.thresholdstate.com/ as
 	<table>
		<tr>
			<th> name </th>
			<th> age </th>
			<th> sex </th>
		</tr>
		<tr>
			<td> joan </td>
			<td> 24 </td>
			<td> f </td>
		</tr>
		<tr>
			<td> archie </td>
			<td> 29 </td>
			<td> m </td>
		</tr>
		<tr>
			<td> bella </td>
			<td> 45 </td>
			<td> f </td>
		</tr>
	</table>


Wikitext seems to retain spaces after text but not the space before text.

Regards,
Nirmal

Re: Whitespace inside Tables lost in Textile [message #632682 is a reply to message #631612] Wed, 13 October 2010 21:15 Go to previous message
David Green is currently offline David GreenFriend
Messages: 135
Registered: July 2009
Senior Member
If you'd like to see it fixed please file a defect.

David

On 10/8/2010 1:14 AM, Nirmal Sasidharan wrote:
> Hello David,
>
> This is not a big problem for me but a round trip using the framework I
> described here
> http://www.eclipse.org/forums/index.php?t=msg&th=189868& amp;start=0&S=81fb0dab1aab44deb072f72e09c38895#msg_num_3
> delivers a diff only w.r.t space inside table cells. I checked with
> http://textile.thresholdstate.com/ and it seems to preserve spaces.
>
>
> |_. name |_. age |_. sex |
> | joan | 24 | f |
> | archie | 29 | m |
> | bella | 45 | f |
>
>
> is delivered by http://textile.thresholdstate.com/ as
>
> <table>
> <tr>
> <th> name </th>
> <th> age </th>
> <th> sex </th>
> </tr>
> <tr>
> <td> joan </td>
> <td> 24 </td>
> <td> f </td>
> </tr>
> <tr>
> <td> archie </td>
> <td> 29 </td>
> <td> m </td>
> </tr>
> <tr>
> <td> bella </td>
> <td> 45 </td>
> <td> f </td>
> </tr>
> </table>
>
>
> Wikitext seems to retain spaces after text but not the space before text.
>
> Regards,
> Nirmal
>
>
Previous Topic:Rally Mylyn Integration
Next Topic:mylyn test cases with out a UI?
Goto Forum:
  


Current Time: Fri Nov 21 02:29:15 GMT 2014

Powered by FUDForum. Page generated in 0.02658 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software