

Hope this maybe helps out another absolute beginner. It's such a stupid mistake that I couldn't find anything on Google or Stack Overflow. What I wanted to do was run the cell by pressing ctrl + return. I was running only the line by putting the cursor in/on it and pressing F9.
Trailing indent pdfkit how to#
I'd be very grateful for any help or pointers. A quick 2-minute tutorial on how to get the trail of dots (called leader dots, technically) into a Table of Contents (TOC). It seems as though it's the enter that's causing the error, but this seems rather hard to fathom.
Trailing indent pdfkit code#
Also, highlighting the code and going to Source -> Fix Indentation doesn't help, I get the same error. I get the same error when I just let the IDE do it's job and automatically format the spacing for me after the enter strokes. I thought maybe I was mixing spaces (behind the colon) with tabs (on the following line), but I get the same error when I don't insert a space behind the colon (just a tab on the following line). Whereas if I type it on the same line: for i in range(1,11): print(i) Constructor to call on derived classes to skip initialization and merely allocate the object.
Trailing indent pdfkit pdf#
Whereas if I write it on the same line, the error disappears: def iris_data(): print("hello")Īnd again in the following example: for i in range(1,11):įile "C:\Users\.\AppData\Local\Temp\ipykernel_9452\1334445784.py", line 1 Creates a new PDF destination object with default values. Fixed compatibility with Internet Explorer 11 Introduced new build-vfs. text-decoration-style text-decoration-thickness text-indent text-justify. I get the error: In : def iris_data():įile "C:\Users\.\AppData\Local\Temp\ipykernel_9452\1971884337.py", line 1 Updated foliojs-fork/pdfkit to version 0.13.0. grid-template-rows hanging-punctuation height hyphens image-rendering. Fixed - Removed trailing question mark in query string if parameters are empty. No matter which code I type, the Indentation Error is always just at the end of the colon when I indent, and disappears when I write it all on the same line.Īs another example, in the below code (again using 4 spaces here): def iris_data(): Fixed indent regression when using -xcodeindentation option. If I write the same code on the same line, I don't get an error. IndentationError: expected an indented block I'm using Spyder as an IDE and it indents it for me, but whether I use Spyder's indent or indent it myself (with tab or 4 spaces), the error I get is: In if 8 + 4 > 0:įile "C:\Users\.\AppData\Local\Temp\ipykernel_9452\858389318.py", line 1 The simplest example that generates the error is (using 4 spaces here): if 3 + 5 > 0: But when I include an enter and a tab stroke, the interpreter throws an indentation error. removes trailing slashes status:RESOLVED resolution:WONTFIX severity:normal. The problem I'm having is that code will run when I have it all on one line. Bug:23264 - missing indent plugin in default vimrc status:RESOLVED. But the solutions that have worked there were to either include a tab (or 4 spaces) in the following line, or else fix other issues there were with the more complex code, which answers don't work or don't seem applicable in my case. However, the list keeps growing in height.There are a lot of questions concerning indentation errors on stack overflow and I've been through a lot. I have modified the XSL to match the client's branding and design precisely. The TOC is generated via xsl which is passed through jinja2 for simple details to the top section of the page. there is nothing technically wrong with it. I currently am creating a perfectly good PDF. implemented ability to preserve trailing white space ( preserveTrailingSpaces property).
