)]}'
{
  "commit": "47459937be8031aae6aaa17ac5f60985f7c9e1bd",
  "tree": "03956bc7a2f4ee071464765153d53eeac57ceccc",
  "parents": [
    "d90555ef0603935529837e490d5acc8436297c56"
  ],
  "author": {
    "name": "Mauro Carvalho Chehab",
    "email": "mchehab+huawei@kernel.org",
    "time": "Thu Jul 10 18:36:40 2025 +0200"
  },
  "committer": {
    "name": "Mauro Carvalho Chehab",
    "email": "mchehab+huawei@kernel.org",
    "time": "Tue Aug 12 07:47:31 2025 +0200"
  },
  "message": "sphinx: parser_yaml.py: fix line numbers information\n\nAs reported by Donald, this code:\n\n\trst_parser \u003d RSTParser()\n\trst_parser.parse(\u0027\\n\u0027.join(result), document)\n\nbreaks line parsing. As an alternative, I tested a variant of it:\n\n\trst_parser.parse(result, document)\n\nbut still line number was not preserved. As Donald noted,\nstandard Parser classes don\u0027t have a direct mechanism to preserve\nline numbers from ViewList().\n\nSo, instead, let\u0027s use a mechanism similar to what we do already at\nkerneldoc.py: call the statemachine mechanism directly there.\n\nI double-checked when states and statemachine were introduced:\nboth were back in 2002. I also tested doc build with docutils 0.16\nand 0.21.2. It worked with both, so it seems to be stable enough\nfor our needs.\n\nReported-by: Donald Hunter \u003cdonald.hunter@gmail.com\u003e\nCloses: https://lore.kernel.org/linux-doc/m24ivk78ng.fsf@gmail.com/T/#u\nSigned-off-by: Mauro Carvalho Chehab \u003cmchehab+huawei@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1602b31f448e7d5343852f98538797a892128b4f",
      "old_mode": 33261,
      "old_path": "Documentation/sphinx/parser_yaml.py",
      "new_id": "634d84a202fc3b8f5bfcc7efdabbe80c78859f49",
      "new_mode": 33261,
      "new_path": "Documentation/sphinx/parser_yaml.py"
    }
  ]
}
