-
Notifications
You must be signed in to change notification settings - Fork 667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breakline does not work #730
Comments
I put as false and it contiues putting a \n |
Which version of PptxGenJS are you using? |
I am using the CDN version https://cdn.jsdelivr.net/gh/gitbrent/pptxgenjs@latest/dist/pptxgen.min.js I have a similar issue ... not specifying blankLine is putting a single linebreak between adjacent items in the array, putting blankLine either as true or false adds an extra one looks like #369 already addresses this? |
This is not working either when you use word-level formatting inside table cells. // Example
var arrObjText = [
{ text: 'Red ', options: { color: 'FF0000', breakLine: false } },
{ text: 'Green ', options: { color: '00FF00', breakLine: true } },
{ text: 'Blue', options: { color: '0000FF' } }
];
slide.addText(arrObjText, {}); outputs
instead of
Any reason why, @gitbrent? |
While there continues to be issues under development with using var pptx = new PptxGenJS();
var slide = pptx.addSlide();
slide.addText(
[
{ text: "Red ", options: { color: "FF0000", breakLine: false } },
{ text: "Green ", options: { color: "00FF00", breakLine: true } },
{ text: "Blue", options: { color: "0000FF" } },
],
{ x: 1, y: 1, w: "80%", h: 3, fill: pptx.SchemeColor.background2 }
);
pptx.writeFile("PptxGenJS-Issue-730"); |
hopefully the align: issues can be addressed at some point ... I have a specific example where based on a template we have a textbox which is align:center to position titles appropriately, but if there is formatting in the line (eg one word bolded) then this issue causes extraneous linebreaks to appear. |
^3.1.1 |
FYI: Fixed via Issue #751 |
array.push({ text: m[1], options: { color: '0070C0', breakLine: false } });
The text was updated successfully, but these errors were encountered: