how to avoid word break when at beginnig of new line

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/3/2007 10:19:39 AM
Gravatar
Total Posts 8

how to avoid word break when at beginnig of new line

dear author:

 now ,i develop a  news publication  system, but i annoy that  the word break when at beginnig of new line ,how to avoid?  thank you very much!!

6/3/2007 11:59:55 AM
Gravatar
Total Posts 18439

Re: how to avoid word break when at beginnig of new line

I'm not sure I understand your question. If you mean using the editor,

shift+enter = new line
enter = new paragraph

Hope it helps,

Joe

6/4/2007 12:08:09 AM
Gravatar
Total Posts 8

Re: how to avoid word break when at beginnig of new line

thank you for your instant reply and i am sorry for my bad presentation,

once again!

now,i input news content to database by FCKedtior, when it is shown to

visitor in aspx pages,i find those english words are broken at the end of

normal line when those over div width , and the remnant is shown at the

beginning  of new line.for example:

i  want :

"The mojoportal project

 is the best open source cms system"

not want:

"The mojoportal pro"

"ject is the best open source cms system "

 

my according codes as follows ,but does not work,why? thank you for your hint!

//codes begin

sb.Append("<table style=\"table-layout:fixed;width:100%;border:0;cellpadding:0;cellspacing:0;\"><tr><td style=\"word-wrap: break-word;word-break: break-all;\" >");
sb.Append( SqlDataReaderArticle .GetString (7));
sb.Append("</td></tr></table>");
LiteralshowArticle.Text = sb.ToString();

//codes end

 

btw: can you supply other better style mojoportal template?
 

6/4/2007 12:14:27 AM
Gravatar
Total Posts 8

Re: how to avoid word break when at beginnig of new line

the template style now used in  http://www.mojoportal.com  ,

i love it very much,can you supply for me to use?

my version is 2.2.1.8  mssqlrease, thank you for your help!!

6/4/2007 6:16:01 AM
Gravatar
Total Posts 18439

Re: how to avoid word break when at beginnig of new line

Hi,

I think by default no words will ever break, only breaks will naturally occur on spaces between words.

I think you are causing the word breaks with this part of your code:

word-wrap: break-word;word-break: break-all;

I do not see why you want to put a table around your content, there is no need for a table there and the markup will be better without it.

Hope it helps,

Joe

6/4/2007 9:15:52 AM
Gravatar
Total Posts 8

Re: how to avoid word break when at beginnig of new line

before, i write codes as follows,but it doesnot work


sb.Append( SqlDataReaderArticle .GetString (7));

LiteralshowArticle.Text = sb.ToString(); 

why?  thank you for your explain again!

You must sign in to post in the forums. This thread is closed to new posts.