Skip to content

Commit

Permalink
docs: fix ellipsis location
Browse files Browse the repository at this point in the history
  • Loading branch information
Elijas committed Nov 9, 2023
1 parent 3078b5f commit 5b09d57
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/source/notebooks/user_guide.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@
"source": [
"from sec_parser.processing_steps import TextClassifier\n",
"\n",
"\n",
"# Create a custom element class\n",
"class MyElement(sp.TextElement):\n",
" pass\n",
Expand Down Expand Up @@ -386,7 +387,8 @@
"├── \u001b[1;34mMyElement\u001b[0m: The following table shows infor...nd June 25, 2022 (in millions):\n",
"├── \u001b[1;34mTableElement\u001b[0m: Table with 15 rows, 44 numbers, and 568 characters.\n",
"├── \u001b[1;34mMyElement\u001b[0m: A reconciliation of the Company...22 is as follows (in millions):\n",
"├── \u001b[1;34mTableElement\u001b[0m: Table with 4 rows, 20 numbers, and 311 characters....\n"
"├── \u001b[1;34mTableElement\u001b[0m: Table with 4 rows, 20 numbers, and 311 characters.\n",
"...\n"
]
}
],
Expand All @@ -399,10 +401,11 @@
" for step in sp.Edgar10QParser().get_default_steps()\n",
" ]\n",
"\n",
"\n",
"elements = sp.Edgar10QParser(get_steps).parse(html)\n",
"tree = sp.TreeBuilder().build(elements)\n",
"section = [n for n in tree.nodes if n.text.startswith(\"Segment\")][0]\n",
"print(\"\\n\".join(sp.render(section).split(\"\\n\")[:13]) + \"...\")"
"print(\"\\n\".join(sp.render(section).split(\"\\n\")[:13]), \"...\", sep=\"\\n\")"
]
},
{
Expand Down

0 comments on commit 5b09d57

Please sign in to comment.