Line break for code postings
Hi there,
normally the forum software does insert automatically a line break for text posting. If i write a
code posting with the {code} parameter, it does not do like that. Sometimes the posts runs
out of the displayed field.
It is a bug or wanted ?
Regards Steffen
Thanks.
But now, I have a syntax error.
BEGIN OF xml_line,
data(256) TYPE x
END OF xml_line.
DATA: lt_xml_table TYPE TABLE OF xml_line,
ls_xml_table TYPE xml_line.
LOOP AT lt_xml_table INTO ls_xml_table.
CONCATENATE ls_string cl_abap_char_utilities=>cr_lf INTO ls_string.
MODIFY lt_xml_table FROM ls_xml_table INDEX sy-tabix.
CLEAR : ls_xml_table, ls_string.
ENDLOOP.
Similar Messages
-
FXML - Line break for text-attribute (LABEL)
Hi!
How to define a text with a line break for a label in FXML?
For example, I cant get this to work (\n):
<Label text="Break\nLine"/> Thanks,
JörnHi,
If you use SceneBuilder Developer Preview 1.1 you will see that SceneBuilder generates this:
<Label layoutX="266.0" layoutY="172.0" text="Break Line" />To enter a new line in a text label in SceneBuilder is easy (even though a bit hidden).
If you hover the mouse over the label text property in the Inspector (right hand side), you will see a little cog menu fading in. If you click on it - you will be able to 'Switch to multi-lines mode' - you can then enter a text with new lines - then save the file and see how it's been handled...
hope this helps,
-- daniel -
All,
I am able to generate xml file from an internal table. The problem is, if I open the file in IE everything looks good. When I open it in notepad or notepad++, everything is in one line. Can you tell me how to generate a line break after each tags.
Please find the following code used by me for reference.
LOOP AT lt_ohd INTO ls_ohd.
ls_temp_ohd = ls_ohd.
AT FIRST.
l_ixml = cl_ixml=>create( ).
l_document = l_ixml->create_document( ).
l_element_ohd = l_document->create_simple_element(
name = 'OHD'
parent = l_document ).
ENDAT.
AT NEW cc.
CLEAR : lv_inhaltskom, lv_text.
lv_inhaltskom = ls_temp_ohd-cc.
CALL FUNCTION 'ISM_SELECT_TEXT_JJTIKO'
EXPORTING
pv_inhaltskom = lv_inhaltskom
CHANGING
pv_langtext = lv_text.
TRANSLATE lv_text TO UPPER CASE.
l_value = lv_text.
l_element_county = l_document->create_simple_element(
name = 'city_county'
value = l_value
parent = l_element_ohd ).
ENDAT.
AT NEW order.
l_element_neighborhood = l_document->create_simple_element(
name = 'entry'
parent = l_element_county ).
ENDAT.
l_value = ls_temp_ohd-neighborhood.
l_element_address = l_document->create_simple_element(
name = 'neighborhood'
value = l_value
parent = l_element_neighborhood ).
l_value = ls_temp_ohd-address_detail.
l_element_address = l_document->create_simple_element(
name = 'address_detail'
value = l_value
parent = l_element_neighborhood ).
l_value = ls_temp_ohd-order.
l_element_address = l_document->create_simple_element(
name = 'order'
value = l_value
parent = l_element_neighborhood ).
l_value = ls_temp_ohd-item.
l_element_address = l_document->create_simple_element(
name = 'item'
value = l_value
parent = l_element_neighborhood ).
l_value = ls_temp_ohd-cc.
l_element_address = l_document->create_simple_element(
name = 'cc'
value = l_value
parent = l_element_neighborhood ).
l_value = ls_temp_ohd-address.
l_element_address = l_document->create_simple_element(
name = 'address'
value = l_value
parent = l_element_neighborhood ).
l_value = ls_temp_ohd-price.
l_element_address = l_document->create_simple_element(
name = 'price'
value = l_value
parent = l_element_neighborhood ).
l_value = ls_temp_ohd-bed.
l_element_address = l_document->create_simple_element(
name = 'bed'
value = l_value
parent = l_element_neighborhood ).
l_value = ls_temp_ohd-bath.
l_element_address = l_document->create_simple_element(
name = 'bath'
value = l_value
parent = l_element_neighborhood ).
l_value = ls_temp_ohd-opentime.
l_element_address = l_document->create_simple_element(
name = 'opentime'
value = l_value
parent = l_element_neighborhood ).
l_value = ls_temp_ohd-state.
l_element_address = l_document->create_simple_element(
name = 'state'
value = l_value
parent = l_element_neighborhood ).
l_value = ls_temp_ohd-zip.
l_element_address = l_document->create_simple_element(
name = 'zip'
value = l_value
parent = l_element_neighborhood ).
l_streamfactory = l_ixml->create_stream_factory( ).
l_ostream = l_streamfactory->create_ostream_itable( table = lt_xml_table ).
l_renderer = l_ixml->create_renderer( ostream = l_ostream
document = l_document ).
l_rc = l_renderer->render( ).
l_xml_size = l_ostream->get_num_written_raw( ).
ENDLOOP.
Regards,
Salil
Edited by: salil vaidya on Jan 18, 2011 2:34 PMThanks.
But now, I have a syntax error.
BEGIN OF xml_line,
data(256) TYPE x
END OF xml_line.
DATA: lt_xml_table TYPE TABLE OF xml_line,
ls_xml_table TYPE xml_line.
LOOP AT lt_xml_table INTO ls_xml_table.
CONCATENATE ls_string cl_abap_char_utilities=>cr_lf INTO ls_string.
MODIFY lt_xml_table FROM ls_xml_table INDEX sy-tabix.
CLEAR : ls_xml_table, ls_string.
ENDLOOP. -
Hi,
I have a BIP Report.
The report includes the layout of a free text column. This text goes towards the right side for sufficient length.
I want to wrap the text or line break this text.
In the rtf template, I am using the following formula:
<?html2fo: OUTPUT_NOTES?>
Any Ideas?Dear,
Add the UDF's on the marketing document you want the tax break up.
Apply FMS using below queries and call these UDF's on your PLD.
FOR BED
DECLARE @Amount as Numeric(19,2)
DECLARE @Rate as Numeric(19,0)
DECLARE @TAmount as Numeric(19,2)
set @TAmount =$[$38.21.Number]
SELECT @Rate=STA1.Rate
FROM OSTC INNER JOIN
STC1 ON OSTC.Code = STC1.STCCode INNER JOIN
STA1 ON STC1.STACode = STA1.StaCode Where OSTC.Code=$[$38.160.0] And STA1.SttType='9' order by STA1.EfctDate desc
set @Amount=(@TAmount * @Rate)/100
Select @Amount
For Cess
DECLARE @Amount as Numeric(19,2)
DECLARE @Rate as Numeric(19,0)
DECLARE @TAmount as Numeric(19,2)
set @TAmount = $[$38.U_BED.Number]
SELECT @Rate=STA1.Rate
FROM OSTC INNER JOIN
STC1 ON OSTC.Code = STC1.STCCode INNER JOIN
STA1 ON STC1.STACode = STA1.StaCode Where OSTC.Code=$[$38.160.0] And STA1.SttType='8' order by STA1.EfctDate desc
set @Amount=(@TAmount * @Rate)/100
Select @Amount
For HCess
DECLARE @Amount as Numeric(19,2)
DECLARE @Rate as Numeric(19,0)
DECLARE @TAmount as Numeric(19,2)
set @TAmount = $[$38.U_BED.Number]
SELECT @Rate=STA1.Rate
FROM OSTC INNER JOIN
STC1 ON OSTC.Code = STC1.STCCode INNER JOIN
STA1 ON STC1.STACode = STA1.StaCode Where OSTC.Code=$[$38.160.0] And STA1.SttType='10' order by STA1.EfctDate desc
set @Amount=(@TAmount * @Rate)/100
Select @Amount
This will help you.
regards,
Neetu -
How to extract compiled stored procedure without line break for long statement
After I compiled stored procedure which contains long statement, the statement would cut into 2 rows into dba_source.
However, when I extract the codes from dba_source table, the source couldn't be compiled successfully because of
the broken lines.
For example, the following statement would be broken into 2 rows like this:
(line 1) gv_Message := 'Interface Description: Interface with Training '|| 'and Development Intran
(line 2) et (Evaluation Statistic Details)';That's very strange. What did you originally compile it with (sql*plus, toad, etc...)? I was able to compile a procedure with the maximum line length (2499 characters see error SP2-0027) and there is no split. Is the procedure in a VALID state with that line break? Honestly, this seems very odd, possibly even a bug here somewhere.
Richard -
How to replace line break for comma
Hi there,
i have a string which is like
header1,value1,header2,value2,header3,value3,header4,value4now i have to write the above string to a file which should be like
file.txt should be
header1,value1
header2,value2
header3,value3
header4,value4i can write the string to a file easy, but i need to make the every even number , to line break.
any help
Thanks
RYou may get a better way, but this is how I would do this:
-- split the string on comma
-- iterate through the array using a for i+=2 loop and concatenate every pair of strings with comma-space between.
db
edit And write the results to a new array of half the length, of course. Then write the new array to the file.
Edited by: Darryl.Burke -
I'm using Dreamweaver in 90% of the time in code view, and there is one thing I dont like and I can't seem to fix it.
When I have a log text the text breaks at the end of my screen and continues at the next line, instead of giving me a horizontal scrollbar at the bottom of the page.
Is there an option to make this happen?Dreamweaver has two types of word wrapping in Code view: hard wrapping, which is off by default, and soft wrapping, which is on by default.
Soft wrapping works like a word processor by moving text onto the next line when it reaches the right border, but does not insert a newline character. To turn off soft wrapping, go to View > Code View Options, and click Word Wrap. It's a toggle on-off option. With a check mark alongside, it's on. Just click to remove the check mark and turn off soft wrapping.
Hard wrapping, by the way, is in Preferences > Code Format. It's not recommended, because it breaks JavaScript. -
Code for a simple line break?
Anyone know the syntax for a line break for data that is
being displayed in notepad file:
<CFCONTENT type="application/txt">
<CFOUTPUT
QUERY="getLines">#pccn##plisn##data##card#(need a line break
here)</CFOUTPUT>Ken F. wrote:
> Anyone know the syntax for a line break for data that is
being displayed in
> notepad file:
>
> <CFCONTENT type="application/txt">
> <CFOUTPUT
QUERY="getLines">#pccn##plisn##data##card#(need a line break
> here)</CFOUTPUT>
>
#chr(13)##chr(10)# <!--- I.E. ASCII Codes for line break
and carriage
return. ---> -
ASP VBSCRIPT: for a declared string, inserting a line break every N characters
I'm using ASP VB. I want to insert a VbCr or a VbLf into a
declared string
every N characters. FWIW, I want to do this because of an
apparent
limitation in MSXML2, which I am using to "scrape" data from
webpages that I
control: I'm getting spurious exclamation points (!) where
line lengths are
too long. Manually inserting line breaks (which do not render
in HTML) seems
to solve the problem. Can someone tell me how to do this?
Put another way, I need to flesh out the following
pseudocode:
Dim myString, myCursorPosition, myIncrement
myString ="The quick brown fox jumped over the lazy dog."
myCurrentCursorPosition=0
myIncrement=5 ' I want a line break for every myIncrement
While [there are still remaining characters to walk through
in the string
' navigate cursor by myIncrement through myString
' insert a VbLf at myCurrentCursorPosition
myCurrentCursorPosition = myCurrentCursorPosition +
myIncrement
[loop]
Thanks for any help on the syntax here.
-KFThis is one possible solution specific to the problem I'm
having with MSXML.
Code is inefficient for explanatory clarity.
BodyAsHtmlString = replace(BodyAsHtmlString, "</a>",
("</a>"&vbcrlf))
BodyAsHtmlString = replace(BodyAsHtmlString, "</td>",
("</td>"&vbcrlf))
BodyAsHtmlString = replace(BodyAsHtmlString,
"</table>",
("</table>"&vbcrlf))
BodyAsHtmlString = replace(BodyAsHtmlString, "</tr>",
("</tr>"&vbcrlf))
BodyAsHtmlString = replace(BodyAsHtmlString, "</br>",
("</br>"&vbcrlf))
-KF
"Ken Fine" <[email protected]> wrote in message
news:e52ln5$i7$[email protected]..
> Thanks, this code works just fine. However, I'm
realizing that my logic is
> going to need to be a little more sophisticated. The
string that I am
> breaking includes HTML code. Inserting a VbCr can mess
up the code.
>
> I need a way so that the breaks won't break code. Any
ideas? If I could
> identify a char that only appeared in written text,
that's one hacky
> solution.
>
> Thanks again,
> -KF
>
> "Julian Roberts" <[email protected]> wrote in
message
> news:e52kjj$shd$[email protected]..
>> Try something like
>>
>> for i=0 to len(mySt) step 5
>> mySt=left(mySt,i) & vbcrlf &
right(mySt,len(mySt)-i)
>> next
>>
>> --
>> Jules
>>
http://www.charon.co.uk/charoncart
>> Charon Cart 3
>> Shopping Cart Extension for Dreamweaver MX/MX 2004
>>
>>
>>
>>
>
> -
Hi,
I am facing the problem that when I read the content of the
texteditor, store it in a javascript variable, and then write it
again into the editor area, all line breaks (not html line breaks,
just the line breaks for the code structure) are gone.
For Example if the content of the Editor is the following:
Test line 1
Test line 5
If I know call my function the value of the texteditor will
be somethign like: "Test line1 Test line 5"
I tried finding the linebreaks and replacing them (either \n,
\r or \n\r) but had no success in doing that.
My code of the function:
var theDom=dw.getDocumentDOM();
var temp = theDom.documentElement.outerHTML;
theDom.documentElement.outerHTML="";
theDom.documentElement.outerHTML=temp;
So I assume Javascript and dw are using different formats,
but I cant find much information about whats being used.
Any help appreicated!
Best,
DavidHi Brent,
Use CHR(10) in text editor for a new line. for example( 'SAP' & CHR(10) & 'Visual' & CHR(10) & 'Composer') will display like,
SAP
Visual
Composer
Hope it helps....
Regards
Basheer -
Inserting line break within label
Hey guys,
i've run into a small problem with the coding. right now im
creating image viewer within a horizontal list. at first, i had
each object coded inside the horizontal list but then i decided to
place everything in an xml file to make changes easier. since i've
switched, i have not been able to figure out how to insert a line
break for each label. this is what the code looked like when i was
naming each object.
<mx:HorizontalList id="PosterSelect" height="352"
columnCount="3" columnWidth="200" width="580"
rollOverColor="#ff3344" themeColor="#DC240B"
itemClick="itemClicked(event)">
<mx:dataProvider>
<mx:Array>
<mx:Object id="object1" label="March 12, 2008&
#13;Chicago, IL" data="events"/>
<mx:Object id="object2" label="March 12, 2008&
#13;Chicago, IL" data="events"/>
<mx:Object label="March 12, 2008& #13;Chicago, IL"
icon="{event3}" data="events"/>
<mx:Object label="March 12, 2008& #13;Chicago, IL"
icon="{event4}" data="events"/>
<mx:Object label="March 12, 2008& #13;Chicago, IL"
icon="{event5}" data="events"/>
</mx:Array>
</mx:dataProvider>
</mx:HorizontalList>
within the label property, i used the & #13; character to
insert a line break. now im using an item renderer to call the
information from my xml file. the problem is... i cannot figure out
how to insert a line break like i did previously. from what i
understand... the text in the label field of the xml file is
already parsed when it comes into flex. so using the & #13; or
\n characters will not work. i also tried hitting enter to insert a
new line in the xml file but that did not work either. does anyone
know how i could work around this?? below is my current code and
xml
<eventinfo>
<events>
<label>March 12, 2008#13;Chicago, IL</label>
<group>group name</group>
<location>Detroit, MI</location>
<icon>posters/event1.png</icon>
<fullsize>posters/event1.png</fullsize>
</events>
<events>
<label>March 12, 2008#13;Chicago, IL</label>
<group>group name</group>
<location>Detroit, MI</location>
<icon>posters/event4.png</icon>
<fullsize>posters/event1.png</fullsize>
</events>
</eventinfo>
<mx:HorizontalList id="HorizontalCanvas" height="337"
columnWidth="180" width="672"
rollOverColor="#ff3344" themeColor="#DC240B"
itemClick="callJavaScript()" x="10" y="33" borderStyle="solid"
dataProvider="{eventinfo.events}" borderColor="#000000">
<mx:itemRenderer>
<mx:Component>
<mx:VBox width="100%" height="350"
horizontalAlign="center">
<mx:Image source="{data.icon}"/>
<mx:Label text="{data.label}"/>
</mx:VBox>
</mx:Component>
</mx:itemRenderer>
</mx:HorizontalList>hey atta,
sry, i was using the character but for some reason
when i posted the character it turned into a space so i added the
space inbetween the & and the #13;
but yea i think it was the height... changed it to 40 and it
worked.. i cant believe i didnt notice that lol... oh well... thx
for the help!!! -
Unwanted Line Breaks in PL/SQL CODE after 'CREATE OR REPLACE' statements
Does anybody know how to keep SQL Developer from automatically editing PL/SQL code and adding line breaks after 'CREATE OR REPLACE' statements?
It keeps taking:
CREATE OR REPLACE PACKAGE DEVELOPER AUTHID DEFINER
And turns it into:
create or replace
package developer AUTHID DEFINER
This unwanted linebreak causes our autodeployment processes to break.
Thanks,
Michael Dunn
University of Notre Dame
Edited by: user9133268 on Feb 21, 2012 8:00 AMHi Michael,
I believe nothing for this issue has progressed since it was asked here:
2.1 RC Extra Line Breaks
As there may be approval for some planned improvements to the SQL Formatter feature in 3.2, I logged an enhancement request for you:
Bug 13744858 - FORUM: UNWANTED LINE BREAK AFTER CREATE OR REPLACE SYNTAX
Regards,
Gary
SQL Developer Team
Edited by: Gary Graham on Feb 21, 2012 4:19 PM
But if you have control over your auto-deployment process code, it might be quicker to enhance that to deal with CREATE OR REPLACE on the same or the preceding line. Also, note that if you edit the package DDL to put the CREATE OR REPLACE on the same line with the package name in the code editor, then immediately use Export or Save Package Spec and Body to save it to disk, then PACKAGE <name> will appear on the same line as the CREATE OR REPLACE syntax. -
How to remove extra line breaks in my html code?
On my website: 2neatmagazines.com, I have old html, written years ago. The html all functions fine, no problems in the broswers. When I Iook at the code, there are lots of line breaks in the text portions.
I can do "apply source formatting", and that has cleaned and aligned the html code nicely. But, the text descriptions in the html still breaks at fixes places. This does not affect how it renders, just how the code looks. For example:
<p align="left"><span class="blacksregularbold"><span class="blackregular">Life
Magazine </span>January 11, 1937</span> : Cover - Japanese
soldiers doing their exercises. Full page LIFE magazine
ad with railroad locomotive at night. The "first"
candid photographs taken by Paul Nadar of Paris in 1886.
Governors - new and old. Margaret Sanger wins the court
victory that birth control contraceptives can be sent
by mail, long fight for related women's rights . Bootleg
coal mining near Shamokin, Pennsylvania. Painter Winslow
Homer. Dinosaurs Enshrined (collection, storage and
display of dinosaur fossils in museums, including Dinosaur
National Monument). Baths of Foam, milk, mud,and wax
for beauty. . Theatre in 1936 and 1937. Japanese Army.
Sonja Henie in her movie "One in a million."
Includes photos of Sonja Henie bicycling - looks like
today's town cruiser bikes. . Amazing series of photos
of San Francisco people interacting (or not) with bum
laying on sidewalk. Photos from wreck of United Airliner
which crashed December 27, 1936 in the Santa Susana
Mountains of California. Five airline crashes in two
weeks at end of 1936. Ice hockey fights. "Tobacco
Road" on Broadway. Japanese soldiers training.
Neat photo of five new locomotives in a row, Canadian
National Railways. <br />
<span class="redregular">Very Good</span> - $52
I would like the main text to be wrapped, and neat. I have tried various "text cleaners" like Haven for the mac, but none of the settings will get rid of this annoying line break formatting.
Any suggestions would be appreciated.
markThe only "Line Break"
<br /> I see is at the end.
Code formating just cleans the display of the visual code it doesn't effect the browser display.
You can do a "Search and Replace" the <br /> with nothing. to strip all <br /> for the whole site or DIR or page.
In code view right mouse click and choose
"Search and Replace"
Is this what your are asking help on?
Shane -
OutputLabel and line breaks doesn't work - Is there a hack for JSF1.2?
Hello,
I use JSF 1.2 and Facelets to generate a form automatically. This works so far well. But if I have a label with line breaks, JSF does not convert the line breaks into �
� tags. Is there a hack to convert line breaks into �
� tags?
A little example
Code:
<h:outputLabel value="#{component.label}" for="#{component.id}" />
<h:inputText value="#{component.value}" id="#{component.id}" />component.label = �First Line\nSecond Line�
component.value = "UserInput"
This is rendered to:
First Line Second Line [UserInput]
Instead of:
First Line [UserInput]
Second Line One possible solution is to disable �escape�. But this is a bad solution because there are umlauts and angle brackets (�<�,�>�) in some texts for my labels. Does anyone know a better solution?
Regards
MartinHi Raymond,
thanks for your tip. It is a very good idea. But while testing I have found a little problem. with "pre". JSF renders labels like this:
<label> <---- notice this line break
Text</label>All labels start with a line break in the HTML code. So all labels start with a line break in the browser too if I use CSS with the "pre" option :(
Regards
Martin
Message was edited by:
mwinandy -
Fix for extra line spacing in code on publish
Hi Everyone
Here is a fix for the issue where on publishing using Contribute (CS3 / CS4) extra line spacing is added into the HTML code on publish. Everytime you publish using Contribute extra line spacing is added between the lines of coding destroying the formatting over time.
(See attached PDF document for the complete how to step-by-step fix.)
The issue lies in the line break type defined in Adobe Contribute settings. Where the web server type, the website is hosted on Unix / Windows, is different from the line break type defined in Contribute's settings under...
Users & Roles > Editing > Line break Type
For example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Website Tile</title>
<meta name="keywords" content="Keywords here" />
<meta name="description" content="Description here" />
On publish becomes:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Website Tile</title>
<meta name="keywords" content="Keywords here" />
<meta name="description" content="Description here" />
(dots are used just to space the text in the forum thread post, they represent blank lines between the lines of code)It sounds like you are carrying over a desktop setting that I dont think is editable in iPad pages. It is the before and after spacing around paragraphs. I have been using iPad versions for months now and cant think of the desktop wording in the inspector.
Open back up in Dekstop pages and see if you can find that setting and reset it to a lower value, or delete the value and resend to iPad.
Jason
Maybe you are looking for
-
Hide an HTML button using javascript
Hi, I need to hide an html buttton using javascript. I have an radio button with values "YES" and "NO". If is select NO then i need hide the button without refreshing the page. Can anyone suggest me how to hide an button using javascript. Thanks Pras
-
Real strange, I'm using a PC at work and I can import a .mov file in AE CS3 but I can't import a jpeg file error parse message how do I fix the issue. Jim
-
Rare reception/ coverage with 4s since updating to ios 6.
Living in the 2nd biggest city in Germany where I always, with any kind of cell phone, used to have all full bars/ coverage, now i have only three bars maximum, plus WLan/ WiFi wont work constantly anymore. Ever since i upgraded to ios 6. I am furiou
-
Switzerland VAT number in FPP2 and FD03
Hello All, Our client wants to enter Swiss VAT numbers in Fpp2 (BP), which inturn reflects in FD03(Customer). I have followed the below steps for enabling it Created a tax type 'CH1' using BUPA_TAXNUMTYPE Maintained data in V_TFKTAXNUMTYPE. Maintaine
-
TS1363 can t see my contacts on itunes
I just sync my iphone into itunes...but i dont see my contact list...