This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! Translate [GIMP Palette Format Version 2 (.gpl)](https://developer.gimp.org/core/standards/gpl/) files into CSS variables. | |
use std::io::BufRead; | |
fn main() { | |
let stdin = std::io::BufReader::new(std::io::stdin()); | |
for line in stdin.lines().skip(1) { | |
let line = line.unwrap(); | |
let line = line.trim(); | |
if line.is_empty() || line.starts_with("#") || line.starts_with("Name:") || line.starts_with("Columns:") { continue; } |