From 7039898a6f27bb0bdf0d04a97e760f5ad12d58b1 Mon Sep 17 00:00:00 2001 From: Hemanth0411 Date: Sat, 8 Nov 2025 19:34:37 +0530 Subject: [PATCH] Parser to ignore words separated by spaces --- nirman/parser.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nirman/parser.py b/nirman/parser.py index a48faca..c90d19e 100644 --- a/nirman/parser.py +++ b/nirman/parser.py @@ -51,9 +51,9 @@ def parse_markdown_tree(lines: List[str]) -> List[Tuple[int, str, bool]]: prefix = line[:prefix_end_index] else: # This is the root item. - raw_name = line.strip() + raw_name = line.strip().split()[0] prefix = "" - is_directory = True + is_directory = False if not raw_name: continue diff --git a/pyproject.toml b/pyproject.toml index 97c416e..5b8bf56 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "Nirman-cli" -version = "0.1.8" +version = "0.1.9" description = "A CLI tool to create project folder structures from a markdown file." authors = [{ name="Hemanth Reddy Annem", email="Hemanthreddyannem@gmail.com" }] readme = "README.md"