added doc comments to all formatters

This commit is contained in:
truePhilipp committed 2024-05-07 17:36:54 +02:00
1 parent 5fc200a75b
commit cf55e8952b
12 files changed
+197 -4

No files matched your search

@@ -1,3 +1,15 @@
"""
unwrap_formatter.py
This module contains a function `format` that modifies a BeautifulSoup object in place.
The `format` function searches for all elements with the attribute "dj-unwrap". For each found element, it removes the
element's tags but keeps its content.
Example:
If an element is <div dj-unwrap><p>Hello, world!</p></div>,
after processing, it becomes <p>Hello, world!</p>.
"""
from bs4 import BeautifulSoup