Skip to content

[Bug]: validating rss feed removes some metadata #103

Description

@boltlessengineer

Issues

  • I have checked existing issues and there no existing ones with the same bug report.

Operating System

MacOS

Actual Behavior

When rendering RSS feed with xml-stylesheet like below, norgolith removes that metadata entirely.

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="assets/rss.xsl" type="text/xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
  ...

Expected behavior

norgolith should not remove those metadata.
Fix the validation

Steps to reproduce

  1. create rss.xml template with xml-stylesheet like snippet above
  2. run lith build
  3. compare the generated rss.xml code from original.

Other information

I assume this was originally intended to be a xml minifier.
We can implement that without using rss crate

Help

Yes

Implementation help

https://github.com/NTBBloodbath/norgolith/blob/master/src/cmd/build.rs#L110-L113

Seems like this part of a code is causing the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions