コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
8111 ビュー

Hi there,

I'm using a PHP script to generate quotation through our website via XMLRPC. In the quotation line description I'd like to insert a new line, so that the format of the line description becomes something like:

Product name

Size: length x width x height

Color: blue

Instead of "Product name, Size x y z, color: blue"

Does somebody has any clue about how to format this in the XMLRPC value? I tried both html, xml and python line breaks/carriage returns.    

アバター
破棄
最善の回答

try concatenate string values using '\n' for line break before sendig it via xmlrpc...
syntax should be something like: 

desc = product_name + '\n' '+ 'Size : ' + lenght_val + 'x' + width_val +'x' ...

use desc string value to send description via xmlrpc

hope it helps

アバター
破棄
関連投稿 返信 ビュー 活動
0
12月 21
1900
0
3月 18
4220
1
3月 15
7553
2
3月 15
10414
1
1月 23
5031