They knew by heart a certain young-ladies'-schoolroom code of laws on language, demeanour, etc.; themselves never deviated from its curious little pragmatical provisions, and they regarded with secret whispered horror all deviations in others. 
They knew by heart a certain young ladies' schoolroom code of behaviour, and never deviated from it; they regarded with whispered horror all deviations in others. 