Task: Custom Indent Width for BeautifulSoup .prettify()
Task: Custom Indent Width for BeautifulSoup .prettify(): a task in Terminal-Lego-15k (Harbor dataset). BeautifulSoup's .prettify() method formats HTML with a fixed indentation of 1 space per level, which is often too narrow for readable code. Your task is to create a Python solution that allows…
The task
BeautifulSoup's `.prettify()` method formats HTML with a fixed indentation of 1 space per level, which is often too narrow for readable code. Your task is to create a Python solution that allows custom indentation width when prettifying HTML content.
Part of PrimeIntellect/Terminal-Lego-15k.