Skip to main content



      Home
Home » Eclipse Projects » Mylyn » Whitespace inside Tables lost in Textile
Whitespace inside Tables lost in Textile [message #629977] Thu, 30 September 2010 04:00 Go to next message
Eclipse UserFriend
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 12:11 Go to previous messageGo to next message
Eclipse UserFriend
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 04:14 Go to previous messageGo to next message
Eclipse UserFriend
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 17:15 Go to previous message
Eclipse UserFriend
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:Problem with TextileLanguage
Next Topic:Rally Mylyn Integration
Goto Forum:
  


Current Time: Wed Jun 25 04:10:56 EDT 2025

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

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

Back to the top