std-entab


Synopsis

(std-entab <str> <n>)

(std-entab8 <str>) ; = (std-entab <str> 8)

Description

std-entab compresses a string to use tabulators instead of multiple spaces. The number n (mostly used with 8) gives the multiplicator at which positions the tabs jump to, based on 1.

n=8: => (1 9 17 ...)

Most used is probably entab8 which is defined as (defun entab8 (s) (std-entab s 8))

It is the complement to std-detab.

Example

(std-entab "         test" 8)  => "\ttest"

Arguments

str: a string.

n: a positive integer number >0.

Return Value

A string.

Side Effects

None.

Module

(std-require 'STDSTR)

Defined in STDSTR