Skip to content

Invalid YAML being produced by --with-metadata if there's a colon-space in the string #814

@the-solipsist

Description

@the-solipsist
❯ trafilatura --with-metadata -u https://www.thehindu.com/sci-tech/energy-and-environment/cop30-a-beginners-guide-on-what-to-expect-from-the-climate-summit/article70259165.ece | head
---
title: COP30: a beginner’s guide on what to expect from the climate summit
author: Indu K Murthy
url: https://www.thehindu.com/sci-tech/energy-and-environment/cop30-a-beginners-guide-on-what-to-expect-from-the-climate-summit/article70259165.ece
hostname: thehindu.com
description: Explore what to expect from COP30, the critical climate summit addressing global commitments, finance, and adaptation strategies for climate action.
sitename: The Hindu
date: 2025-11-10
categories: ['Environment']
tags: ['climate change', 'climate change (politics)', 'United Nations (climate change)', 'global warming']

As : indicates a key-value pair in YAML, it needs to be escaped. The title should be in quotes: title: "COP30: a beginner’s guide on what to expect from the climate summit".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions