From bbcd11531a5220f28da7e8637602c6fc507b9659 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Sun, 18 May 2025 17:10:32 +0200 Subject: [PATCH] Fix order of story structure columns in CSV export (#2313) --- novelwriter/gui/outline.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/novelwriter/gui/outline.py b/novelwriter/gui/outline.py index 3937ed53..efe20aea 100644 --- a/novelwriter/gui/outline.py +++ b/novelwriter/gui/outline.py @@ -784,7 +784,8 @@ class GuiOutlineTree(QTreeWidget): ): if novIdx.level != "H0" and (nwItem := SHARED.project.tree[tHandle]): refs = SHARED.project.index.getReferences(tHandle, sTitle) - story = {k: v for k, v in novIdx.comments.items() if k in sMatch}.values() + comments = dict(novIdx.comments.items()) + story = [comments.get(k, "") for k in sMatch] data.append([ novIdx.level, novIdx.title,