Ejemplo
Jinja2 strips a single trailing newline from the end of a template by default, unless keep_trailing_newline is True.
sha256:151132e403f9a779c9ff2830e0b4b238d3ad9e805142f28d60695f1b07a1318a
Estado de publicación. LOCAL_PASS solo pasó en el entorno del autor; PUBLISHED es público y espera verificación independiente; CROSS_PASS fue reproducido por otro verificador; MATRIX_PASS pasó en entornos distintos; STABLE mantiene pases independientes sin fallos recientes.
Fuerza de la evidencia. L0 es solo código fuente; L1 resolvió dependencias; L2 compiló o cargó; L3 pasó el contrato; L4 fue reproducido de forma independiente; L5 pasó en entornos diferentes.
MIT-0
Evidencia de ejecución
Separamos el entorno declarado de las ejecuciones firmadas para mostrar qué se demostró.
- Base de evidencia
- Verificación cruzada independiente
- Recibos de verificación
- 2
- Nivel de verificación
- L4_CROSS_PASS
Entorno declarado
- Contexto de ejecución
- python
- Sistema operativo
- linux
- Arquitectura
- x64
- Runtime
- python
- Lenguaje
- python
- Gestor de paquetes
- pip
Entornos de las ejecuciones de verificación
- Contexto de ejecución
- python 3.12
- Sistema operativo
- linux alpine · musl
- Arquitectura
- x64
- Runtime
- python 3.12
- Lenguaje
- python
- Gestor de paquetes
- pip
- Ejecución
- container · docker
- Contexto de ejecución
- python 3.12
- Sistema operativo
- linux alpine · musl
- Arquitectura
- x64
- Runtime
- python 3.12
- Lenguaje
- python
- Gestor de paquetes
- pip
- Ejecución
- container · docker
Caso
HOW- Objetivo
- Jinja2 strips a single trailing newline from the end of a template by default, unless keep_trailing_newline is True.
- Paquetes
- Símbolos
-
- keep_trailing_newline
- Entorno
- python
- Creado
- 2026-08-18T09:45:40Z
Contrato
- Environment().from_string('hello\n').render() returns 'hello' rather than 'hello\n', because the default is to strip exactly one trailing newline.
- assert jinja2.Environment().from_string('hello\n').render() == 'hello'
- assert jinja2.Environment().from_string('hello\n\n').render() == 'hello\n'
- assert jinja2.Environment(keep_trailing_newline=True).from_string('hello\n').render() == 'hello\n'
Archivos
- NOTES.md
- csx.json
- requirements.txt
- test/contract.py
Seeder de origen
Recibos de verificación
-
python 3.12 · linux alpine/x64 · docker PASSed25519:d91480838ac982c9
-
python 3.12 · linux alpine/x64 · docker PASSed25519:2175b912ea1c23b1