mirror of
https://github.com/sharkdp/bat
synced 2024-11-23 20:33:06 +00:00
68d525cd8b
This fixes #1438. Note however, that using a pager such as less will add a newline itself. So to actually not print a newline for such files, you need to either disable paging: bat --style=plain --paging=never no-newline-at-end-of-file.txt or use a "pager" that does not add a newline: bat --style=plain --pager=cat no-newline-at-end-of-file.txt Note that we also update syntax tests file since a bunch of them had missing newlines on the last lines.
34 lines
565 B
YAML
Vendored
34 lines
565 B
YAML
Vendored
---
|
|
# Simple example
|
|
id: 3595
|
|
name: Test User
|
|
username: "testuser"
|
|
other_names: ['Bob', 'Bill', 'George']
|
|
hexa: 0x11c3 #inline comment
|
|
octa: 021131
|
|
lastseen: .NAN
|
|
enabled: true
|
|
locked: false
|
|
groups:
|
|
- administrators
|
|
- engineering
|
|
- sfa
|
|
address: >
|
|
123 Alphabet Way
|
|
San Francisco, CA
|
|
bio: |
|
|
I am a hardworking person
|
|
and a member of the
|
|
executive staff
|
|
phone: null
|
|
email: ~
|
|
building_access: yes
|
|
secure_access: no
|
|
bulb: On
|
|
fans: Off
|
|
emails:
|
|
executives:
|
|
- bob@example.com
|
|
- bill@example.com
|
|
supervisors:
|
|
- george@example.com
|